473,763 Members | 8,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

inline manifest for build.xml

an ant build.xml file:

<project name="XHTML" default="packag e2">

<import file="propertie s.xml" />

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

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

<target name="compile" depends="prepar e">
<javac srcdir="${sourc eDir}"
destdir="${outp utDir}"
classpath="${ja rPath}"
/>
</target>

<target name="manifest1 " depends="compil e">
<manifest file="${outputD ir}/MANIFEST.MF">
<attribute name="Main-Class" value="${pkgPat h}${mainClass1} " />
</manifest>
</target>

<target name="manifest2 " depends="manife st1">
<manifest file="${outputD ir}/MANIFEST.MF">
<attribute name="Main-Class" value="${pkgPat h}${mainClass2} " />
</manifest>
</target>

<target name="package1" depends="manife st2">
<jar
destfile="${out putDir}/${mainClass1}.j ar"
basedir="${outp utDir}">
</jar>
</target>

<target name="package2" depends="packag e1">
<jar
destfile="${out putDir}/${mainClass2}.j ar"
basedir="${outp utDir}"
manifest="${out putDir}/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.n ame}"/>
<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 1291

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

Similar topics

0
1076
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 "error in the manifest. Re-installing the application may fix the problem." When I delete the manifest files in the /debug directory the application runs...the next time i build the application the manifest files are recreated. I have not found any...
3
4412
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 really understand how this could be an issue. The assemblies that the system is complaining about are ones that we build here and we're not changing version numbers on anything. The errors come and go with no apparent rhyme or reason. We do not...
11
11202
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 that I rebuild? Regards, George.
14
5919
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. Clicking on the button that creates the wrapper class causes an exception, not in the button's event handler, but in Application.Run() within Main(). The error: ! System.IO.FileNotFoundException was unhandled Message="The specified module could not...
1
8079
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 ("Administrator level") and believe it has to be done from within this manifest file that is to be linked into the program. -- ----------- Thanks,
0
1573
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 application is being linked to a dll by providing the lib file in the linker options as input. On running the application I get the error that the application has made an attempt to load a c runtime library without using a manifest. when I build...
4
3919
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 compile/build the code but couple of places in my build tree I don't see manifest file along with DLL and/or EXE. In most dirs. it (*.manifest) is there except for few and I wonder what could be the reason for that. I'm not using /manifest switch...
0
1520
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# so that I can debug the resulting code? I have been able to add the manifest file, to the exe after I have built the program. But then, when I try to debug my C# code, the program crashes at the point where a function call is made that is used by...
1
4085
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 linked to manifest, and msvcr versions issues. Here is my understanding and how far I got: - python 2.6 is built with VS 2008, and msvcr 9: numpy has to be built against the exact same runtime to work. - msvcr 9 is not publicly available on most...
0
9387
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10002
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.