Must-see for all ant beginners

2005-07-12 Thread JS developer
hi all, this is a must-see for all beginners with ant http://wiki.apache.org/ant/TheElementsOfAntStyle Regards JS

Re: Re: build.xml for javadoc of entire folder tree

2005-07-12 Thread JS developer
Thanks Ivan and Bill, javadoc for entire src.zip worked :-))) but had to break down the task into handling each sub folder - com, org, sunw, java, javax and had to set maxmemory for javadoc task useexternalfile="true" is a lifesaver Regards and Best wishes JS system config: Win Xp Pro SP2,

Queries on using ANT

2005-07-12 Thread Karunakar Chatla
Hi, I am currently using ANT in my project. I have following queries - 1) I have the requirement to build a C++ project( .dsw file ). How can I do this, as I didn't find any direct support in ANT Task list? 2) Can I publish an HTML page on a web page using ANT? Thanks, Karunakar Chatla

Re: ejbjar, jar, and manifests with JBoss

2005-07-12 Thread Conor MacNeill
Andrew Perez-Lopez wrote: > Hey all, > > I'm working with EJBs using JBoss 4.x and Ant 1.6.5. I'm trying to set > the Class-Path of the manifests of a big bunch of EJBs to a set of > libraries that I've included in my EAR file. I can get ejbjar to > generate all my jars, which is very nice, but

CVS Changelog

2005-07-12 Thread KrustyDerClown
Hello, i have a short questions to the task in ANT. I create changelogs of some packages ... can i store this changelogs in 1 !!! XML file ? Here my task ... The problem is that the task overwrite the changelog.xml for every package. :( Can anybody help ? Greets Michael

Re: AW: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Alexey N. Solofnenko
Hmm... after with the same name is not supposed to work. The first task in the build script always wins. - Alexey. Christine Gerstenmayer wrote: Hello Alexey Thanks very much for your help but I have another problem: Loadfile works fine: But if I want to replace the placeholder with t

Re: AW: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Alexey N. Solofnenko
It is XML. You will need to put "&database;". - Alexey. Christine Gerstenmayer wrote: Hello Alexey Thanks very much for your help but I have another problem: Loadfile works fine: But if I want to replace the placeholder with the property like this (the placeholder in repository.xml is "

ejbjar, jar, and manifests with JBoss

2005-07-12 Thread Andrew Perez-Lopez
Hey all, I'm working with EJBs using JBoss 4.x and Ant 1.6.5. I'm trying to set the Class-Path of the manifests of a big bunch of EJBs to a set of libraries that I've included in my EAR file. I can get ejbjar to generate all my jars, which is very nice, but since the ejbjar task doesn't all

RE: build.xml for javadoc of entire folder tree

2005-07-12 Thread Bill Rich
Here is a target that does the entire tree beginning at ${src.dir}. It includes all the files in the directories that begin with the ${pkg.base.dir} directory. The classpath.javadoc property is set in the init target and is shown following the javadoc target. If you fiddle around with this you can

RE: Tomcat 5.5.9 w/Admin installed and Java 1.5 Issue

2005-07-12 Thread Shatzer, Larry
You might want to ask the tomcat-users mailing list, and not ant's user list. http://jakarta.apache.org/site/mail2.html#Tomcat > -Original Message- > From: Rich Harris [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 12, 2005 3:13 PM > To: Ant Users List > Subject: Tomcat 5.5.9 w/Admin in

Tomcat 5.5.9 w/Admin installed and Java 1.5 Issue

2005-07-12 Thread Rich Harris
I've installed OS: FC4 (RH Linux) Tomcat 5.5.9 Java 1.5 Tomcat comes up fine. I click on the administration link try to login with the defaul login and get this: "SEVERE: Invalid path /login was requested" in the catalina.out I google'd it and didn't get much. Anyone else have this issue? -

RE: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Anderson, Rob (Global Trade)
The manual ships with Ant. Look in $ANT_HOME/doc/manual. -Rob A > -Original Message- > From: Christine Gerstenmayer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 12, 2005 1:44 PM > To: 'Alexey N. Solofnenko' > Cc: 'Ant Users List' > Subject: WG: Howto do this in Ant: Replace a placehold

WG: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Christine Gerstenmayer
Hi Alexey, sorry, I have to revoke my last answer. Loadfile does not work, it does nothing. I use Ant 1.6.2. Can this be the reason ? For all ? Do you have a manual for Ant 1.6.2 ? Please help. Regards Christine -Ursprüngliche Nachricht- Von: Christine Gerstenmayer [mailto:[EMAIL PROTECT

AW: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Christine Gerstenmayer
Hello Alexey Thanks very much for your help but I have another problem: Loadfile works fine: But if I want to replace the placeholder with the property like this (the placeholder in repository.xml is "&database;": Ant says: The entity "database" was referenced but not declared.

Re: antcall with antcontrib's RemoteAnt?

2005-07-12 Thread Chad Armstrong
Ok, I think I figured this out myself. I can replace all antcall's with macrodef's like the following (assumes antcontrib installed): .. .. .. .. - would translate to .. .. .. ---

RE: Doing patch builds

2005-07-12 Thread Anderson, Rob (Global Trade)
I would discourage you from persuing a patch build solution. I would suggest that a patch build be treated as an entire new build. There are several advantages to this approach. 1. The build and deployment process is always the same. 2. The person doing the build and deploy does not need to know

antcall with antcontrib's RemoteAnt?

2005-07-12 Thread Chad Armstrong
Hello, I've gotten some help from this list in setting up antcontrib's RemoteAnt task, and have it mostly working (for which I am greatly indebted.) Now, however, I'm up against another issue. I have a build script on an XP box that kicks off (using RemoteAnt) a build file on a Linux box. But

Re: storing optional (ftp) task jar dependency under my project instead of under /ant/lib

2005-07-12 Thread Asle Pedersen
Ok, in that case alt.3 is not very attractive afterall. I don't know if it is just me but I prefer do embed this type of behaviour in the build.xml and project itself. I have had similar problems with system environment variables in particular charset encodings which need to be set outside of the

Re: build.xml for javadoc of entire folder tree

2005-07-12 Thread Ivan Ivanov
Hello, --- JS developer <[EMAIL PROTECTED]> wrote: > hi, > i'm a beginner with ant, i want to generate the > javadoc for the entire src.zip that comes with the > sun jdk download. Quite an ambitious undertaking :). Why don't you just download it from[1]. Anyway, it you want it for educational p

build.xml for javadoc of entire folder tree

2005-07-12 Thread JS developer
hi, i'm a beginner with ant, i want to generate the javadoc for the entire src.zip that comes with the sun jdk download. I've tried a lot of standard options with the build.xml, sourcepathref, filesets etc. but i get "build failed". Also, it tries to add all the .java source files to the javado

Re: storing optional (ftp) task jar dependency under my project instead of under /ant/lib

2005-07-12 Thread Ivan Ivanov
Asle, --- Asle Pedersen <[EMAIL PROTECTED]> wrote: > I prefer alt.3 and try using taskdefs before without > success. I did > try it again now also not successfully. Could you > please supply me > with a complete working example? I've implemented this approach only once for , because I was only cu

Re: Manifestations

2005-07-12 Thread Juergen Hermann
On Tue, 12 Jul 2005 18:11:21 +1000, Kai Hendry wrote: >Ok ${man2} has what I want. Though the JAR take wants a FILE for the >manifest. So how do I dump ${man2} temporarily to a file for the task. I >don't want >to overwrite MANIFEST1.MF or MANIFEST2.MF then do not use loadfile, but concat or co

Re: storing optional (ftp) task jar dependency under my project instead of under /ant/lib

2005-07-12 Thread Peter Reilly
Asle Pedersen wrote: I prefer alt.3 and try using taskdefs before without success. I did try it again now also not successfully. Could you please supply me with a complete working example? This is how my (non-working) build.xml looks like now: (both .jar files are placed in the lib directory un

Re: storing optional (ftp) task jar dependency under my project instead of under /ant/lib

2005-07-12 Thread Asle Pedersen
I prefer alt.3 and try using taskdefs before without success. I did try it again now also not successfully. Could you please supply me with a complete working example? This is how my (non-working) build.xml looks like now: (both .jar files are placed in the lib directory under the basedir)

Re: storing optional (ftp) task jar dependency under my project instead of under /ant/lib

2005-07-12 Thread Ivan Ivanov
Asle, You have several other alternatives to keep your ant distribution clean of external libs: 1) Put commons-net-1.1.0.jar in $HOME\.ant\lib (my favourite way) 2) Place it an arbitrary directory say /path/to/thirdparty/jars and use -lib option of ant launching script. 3) (Requires more coding a

Doing patch builds

2005-07-12 Thread S I
Hi I was hoping someone could put me on the right track please. I finally automated my whole build and deployment as well as writing code to handle branch builds. Now I need to write code to handle patch builds. This is when the developers hand over couple of modified files which need to be

storing optional (ftp) task jar dependency under my project instead of under /ant/lib

2005-07-12 Thread Asle Pedersen
Is it possible to "embed" the ant ftp task in a project. I would like to just depend on a standard ant-installation to use the ftp task and have the commons-net-1.1.0.jar in my project instead of under /ant/lib which is suggested by the documentation. I have tried different methods to do this but n

RE: Generate manifest classpath with relative paths

2005-07-12 Thread Dominique Devienne
> -Original Message- > From: Martin Olsson [mailto:[EMAIL PROTECTED] > I already have an ANT target that creates myprogram.jar but I also need it > to create a manifest with a proper Class-Path pointing to > ./lib/commons/commons-net.jar etc etc > > I managed to implement this using _absol

Re: What is the difference between a nested element and a nested type?

2005-07-12 Thread Eric Tchepannou
This is something I will have to try, since I still cant get the classloader issue sorted out. I was reading the loaderRef description in the documentation and it is mentionned that the loaderRef name is "constructed from the specified classpath". How is this to understand? Thanks. On 6/13/05, [E

Re: Manifestations

2005-07-12 Thread Kai Hendry
Ok ${man2} has what I want. Though the JAR take wants a FILE for the manifest. So how do I dump ${man2} temporarily to a file for the task. I don't want to overwrite MANIFEST1.MF or MANIFEST2.MF Thanks! First: ${man1} Second: ${man2} Juergen Hermann wrote: On Fri, 08 Jul