I do this in one script I wrote... it's doing it to a JAR, but I believe the same works for the war task...
<target name="update_war"> <war destfile="mywar.war" basedir="${classes}" update="true" /> </target> Basically, I have a directory /org under what ${classes} points to, which contains some class files to be updated. That seems to be all there is to it. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, June 6, 2005 9:34 am, Yayo said: > I think that could be done unwar-ing the war file in a temp dir, > ovewrite the file and then war the resulting tree > > :P Just an idea! :P > > 2005/6/6, Bryan Mishkin <[EMAIL PROTECTED]>: >> Does anyone have any suggestions for replacing a file within a war with >> another copy of the same file? I'm having a heck of a time >> accomplishing >> this and I've tried <zipfileset> but it doesn't overwrite the file >> already >> in the war. >> >> The log4j.xml file is the one in question. I want to replace it with a >> version that doesn't have as many appenders when I cactify my war file >> using >> the <cactifywar> target. I've tried to utilize <zipfileset>,<classes>, >> and >> <fileset> tags but it doesn't overwrite the file contained within the >> war. >> Any ideas are appreciated >> >> Bryan >> >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Monday, June 06, 2005 7:08 AM >> To: user@ant.apache.org >> Subject: AW: built-in property for the invoking target? >> >> Hhm seems to rely on a newer Ant version. >> Doesnt work with 1.6.3 ("self" is not defined.) but with 1.7alpha. >> >> Jan >> >> -----Ursprüngliche Nachricht----- >> Von: Dick, Brian E. [mailto:[EMAIL PROTECTED] >> Gesendet: Montag, 6. Juni 2005 13:56 >> An: Ant Users List >> Betreff: RE: built-in property for the invoking target? >> >> I get the following error when trying the code from your reference. >> >> BUILD FAILED >> C:\build.xml:77: ReferenceError: "self" is not defined. >> >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Monday, June 06, 2005 4:37 AM >> To: user@ant.apache.org >> Subject: AW: built-in property for the invoking target? >> >> Maybe http://marc.theaimsgroup.com/?l=ant-user&m=110077914931555&w=2 >> could >> be interisting for you. >> >> Jan >> >> -----Ursprüngliche Nachricht----- >> Von: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED] >> Gesendet: Freitag, 3. Juni 2005 20:53 >> An: Ant Users List >> Betreff: Re: built-in property for the invoking target? >> >> You can write a script to run ant: >> >> ant -Dcommand="%*" %* >> >> - Alexey. >> >> Eric Wood wrote: >> > My build.xml sends email that states whether or not the build >> succeeded >> > or failed. I would like to include which target was invoked from the >> > command line, but I haven't found a built-in property for this. I was >> > using the ant-contrib <variable> task and setting it to the target >> name >> > for each target, but this doesn't seem very ant-like. Is there a >> better >> > way? >> > >> > >> > >> > >> > Eric Wood >> > [EMAIL PROTECTED] >> > 207.552.2306 >> > >> > >> >> -- >> ------------------------------------------------------------------------ >> / Alexey N. Solofnenko >> home: http://trelony.cjb.net/ >> / >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > -- > _____________________ _____ ___ _ _ _ > _________ ___ ___ _ _ _ > ______ __ ___ _ ___ http://www.jollyrogergame.tk > ________ ____ ___ ___ _ _ _ > _____________ ___ ___ _ _ http://www.yayo.tk > _______________ ________ ____ _ ____ _ _ ___ _ _ _ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]