Exclude files in tarfileset

2007-04-11 Thread wolverine my
Hi! I want to do a backup of all my project files except the JARs in project/src/main/webapps/WEB-INF/lib directory. However, the following Ant task (using the src property) will include all the JARs in the backup.tar.gz: but, the following Ant task (WITHOUT

Trying to override old definition of datatype resources

2007-04-10 Thread wolverine my
The following message always displayed when I execute Ant, ant backup Buildfile: build.xml Trying to override old definition of datatype resources init: backup: [tar] Nothing to do: C:\... BUILD SUCCESSFUL Total time: 0 seconds What does this really means? What should we do to resolve

Manifest files

2007-03-26 Thread wolverine my
Hi! I created a JAR with the following Ant task: The HelloWorld.jar contains two manifest files: ... META-INF/MANIFEST.MF HelloWorld.mf Both manifest files are the same except that the MANIFEST.MF contains two extra lines: Ant-Version: Apache Ant 1.7.0 Created-By: 1.5.0_11-b03 (Sun Microsy

Re: How to set source from 1.4 to 1.5

2007-01-15 Thread wolverine my
Hi! Does it harm if we set ? The Ant manual highly recommend to always specify soruce and target attributes. On 1/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: First of all you have to install a Java5 Development Kit. Having that installed as first on the PATH, Ant should do the rest a

Retrieve modified, added and deleted files

2006-07-12 Thread wolverine my
Hi! How can we retrieve a list of files that has been modified, added and deleted? Base on these lists, we would like to commit, add and delete from the SVN. Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Ant build file naming convention

2006-07-04 Thread wolverine my
Original Message- From: wolverine my [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 5:11 AM To: Ant Users List Subject: Ant build file naming convention Hi! When writting Ant build file, is there any naming convention that Apache Ant Team could recommend? I'm trying to I ha

Ant build file naming convention

2006-07-03 Thread wolverine my
Hi! When writting Ant build file, is there any naming convention that Apache Ant Team could recommend? I'm trying to I have seen property name like "src", "src.dir", "dir.src" or "src.path". In this case we know that "src" is the favour since it has been used in the Ant's manual. I also seen ta

Can we pass parameter to Ant target?

2006-06-21 Thread wolverine my
Hi! Is it possible to pass parameters/arguments to a Ant target? For an example, ant deploy localhost where we specify the deployment server as a parameter when invoking the "deploy" target. The "localhost" could be another property defined in the build file, -

Copy empty directory

2005-10-24 Thread wolverine my
Hi! I'm using Ant 1.6.5 and I have the following directories and files test + war | | | + WEB-INF | + index.jsp | + build.xml note that the WEB-INF directory is empty and when executing the following task, The index.jsp is copied into webapps/test but the

War task to include multiple lib files?

2005-08-29 Thread wolverine my
Hi! I'm using Ant 1.6.5 and I have the following Ant task: http://app.name>}.war" webxml="${ web.dir}/WEB-INF/web.xml"> The Ant task is executed successfully but there is no WEB-INF/lib archived in the WAR file. However if I delete "b.jar" from the then the WAR will contains WEB-INF

How to retrieve Java runtime directory

2005-04-25 Thread wolverine my
Hi! How can we retrieve the directory of the Java runtime which executing the Ant's build file? I have two Java versions installed and I would like to print the Java runtime information when building the programs. Currently, I'm doing this The problem is that the JAVA_HOME is not guarante

Re: Classpath for Taskdef?

2005-04-24 Thread wolverine my
AIL PROTECTED]> wrote: > Hello Wolverine My, > > yes it is possible to extend the classpath for specific tasks. The > task supports the following attributes : > > classpath > classpathref, > loaderref > > classpathref will be followed by the ID of a path defined before i

Classpath for Taskdef?

2005-04-23 Thread wolverine my
Hi! There are times we have to explicity set the CLASSPATH before executing Ant, e.g. specifying the 3rd party JAR where the new Ant task is defined. Otherwise, we will hit the error 'taskdef class ZKMTask cannot be found'. May I know if we are able to set the CLASSPATH for so that we don't have