473,287 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

inline manifest for build.xml

an ant build.xml file:

<project name="XHTML" default="package2">

<import file="properties.xml" />

<target name="clean">
<delete dir="${outputDir}" />
</target>

<target name="prepare" depends="clean">
<mkdir dir="${outputDir}" />
</target>

<target name="compile" depends="prepare">
<javac srcdir="${sourceDir}"
destdir="${outputDir}"
classpath="${jarPath}"
/>
</target>

<target name="manifest1" depends="compile">
<manifest file="${outputDir}/MANIFEST.MF">
<attribute name="Main-Class" value="${pkgPath}${mainClass1}" />
</manifest>
</target>

<target name="manifest2" depends="manifest1">
<manifest file="${outputDir}/MANIFEST.MF">
<attribute name="Main-Class" value="${pkgPath}${mainClass2}" />
</manifest>
</target>

<target name="package1" depends="manifest2">
<jar
destfile="${outputDir}/${mainClass1}.jar"
basedir="${outputDir}">
</jar>
</target>

<target name="package2" depends="package1">
<jar
destfile="${outputDir}/${mainClass2}.jar"
basedir="${outputDir}"
manifest="${outputDir}/MANIFEST.MF"
/>
</target>
</project>

I'm trying follow the inline manifest example:

<jar destfile="test.jar" basedir=".">
<include name="build"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<section name="common/class1.class">
<attribute name="Sealed" value="false"/>
</section>
</manifest>
</jar>

from <http://ant.apache.org/manual/CoreTasks/jar.html>,
so that package1 uses manifest1, though.
thanks,

Thufir

Jul 20 '05 #1
0 1263

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom | last post by:
I am using VS 2005 Beta 2. I tried the click once publish wizard to deploy my application.. Now when I try to debug my application I get an error saying that my application can not run due to an...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
11
by: RossettoeCioccolato | last post by:
Is there any way to coax the VC8 linker into generating an application manifest with a trust level section suitable for an administrative application? Or do I have to add this manually each time...
14
by: _iycrd | last post by:
After several frustrating attempts to wrap a native DLL w a C++/CLI DLL, I finally got an assembly to compile, only to find a *runtime* error. The app comes up fine. Test dialog displays. ...
1
by: Steve Teeples | last post by:
Can an application manifest document be added to a C# application? If so, can it be done from within the IDE of Visual Studio 2005? I want to customize my application's security level...
0
by: mukeshp | last post by:
I did not find very elaborate details on the manifests on msdn and so am still not clear on the manifest file usage. I am building a win32 console executable application in Visual Studio 2005. The...
4
by: =?Utf-8?B?UkQ=?= | last post by:
I'm working on migrating my VC++ 6.0 project to VS C++ 2005 and I'm bulding the project using NMAKE from the command line. The code is not GUI, all console utilities and services. I've managed to...
0
xarzu
by: xarzu | last post by:
Getting a C# program with a manifest file to run in the debugger ---------------------------------------------------------------- How do I declare a manifest file in the Visual Studio IDE for C#...
1
by: David Cournapeau | last post by:
Hi, I am trying to make numpy build with python 2.6 on windows, and it has been a bumpy road. Building with MS tools works OK, but building with mingw is still problematic. The problems are...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.