using in tsk

2008-02-21 Thread dcdmailbox-info
Hi all, I have the following resource collection with different library paths ... and the following war task Ant 1.7 war task is resource-enabled and it work gracefully. META-INF WEB-INF 3rdparty.jar activation.jar However, how can I specify the library path wi

Building a Jar for SPI application

2008-02-21 Thread Wayne T Richards
I am having problems building my ant script to build my SPI jar file and to create the MANIFEST.MF file. I have use the metainf directive to move the SPI properties file to the META-INF/ directory. The problem that I am getting into is the the SPI properties file should be located in the META-I

Re: Filter on copy with directory contents

2008-02-21 Thread David Weintraub
Well, the @REPLACE@ could be handled by a inside a copy. The tricky part is finding the value for ${replacing}. You might be able to do something with the AntContrib task. This can take a property and munge it. Let's say you do something like this: This will give you ${

Filter on copy with directory contents -- solution

2008-02-21 Thread Paul J. Lucas
After a friend pointed me to , I managed to figure out a pure Ant solution: This assumes the file contains @CLASSPATH@ as the string to replace. - Paul

Who's Using YUI Compressor with ANT?

2008-02-21 Thread Garrett Smith
YUI Compressor does a pretty good job at minifying the JS. I like the idea of building multiple files and doing batch operations. I want to combine a.js b.js c.js to abc-min.js >From windows cmd: C:\Users\ape\ant>.\bin\ant -buildfile=..\build.xml js.minify Buildfile: ..\build.xml js.minify: B

Re: useexternalfile change between 1.6.5 and 1.7.0?

2008-02-21 Thread Dave Blaschke
Hi, more info below ... comments? Thanks! Peter Reilly wrote: Can you try to get a tar/zip file containing a project where this occurs. Simple to reproduce, just set useexternalfile=true and spread the doctitle or bottom tags across multiple lines: Th

I: using in tsk

2008-02-21 Thread dcdmailbox-info
Hi all, I have the following resource collection with different library paths ... and the following war task Ant 1.7 war task is resource-enabled and it work gracefully. META-INF WEB-INF 3rdparty.jar activation.jar However, how can I specify the library p

Re: How to compile co-dependent files

2008-02-21 Thread Donald McLean
As I understand things, it is only possible to resolve circular references in the same compile. In other words, they would have to not only be in the same target but they would also have to be in the same javac task within that target. YMMV, void where prohibited, cash value US$0.0002 mojoRis

Re: How to compile co-dependent files

2008-02-21 Thread Scot P. Floess
Understood... But, as Dimitris pointed out you usually put your build/classes dir in your classpath. Additionally, you probably want to include the source directory in the sourcepath section of the javac task... To be honest I'm not sure you are structuring your build.xml correctly or pe

Re: How to compile co-dependent files

2008-02-21 Thread mojoRising
I solved my problem for the time being by refactoring my classes to adhere to a strict convention whereby the compile order is A,B,C and the observed convention is: target A requires no other classes - (just simple display objects) target B references classes in A only - (EJBs) target C can refer

Re: How to compile co-dependent files

2008-02-21 Thread Dimitris Mouchritsas
Scot P. Floess wrote: Can we see your build.xml? Also, is this Java compilation? mojoRising wrote: Hi. I am new to using ANT and hope someone can help me with this, I am sure most basic, question which has confounded me. I have 2 targets. Each target contains a file that has references to a

Re: How to compile co-dependent files

2008-02-21 Thread Scot P. Floess
Can we see your build.xml? Also, is this Java compilation? mojoRising wrote: Hi. I am new to using ANT and hope someone can help me with this, I am sure most basic, question which has confounded me. I have 2 targets. Each target contains a file that has references to a class in the other targe

How to compile co-dependent files

2008-02-21 Thread mojoRising
Hi. I am new to using ANT and hope someone can help me with this, I am sure most basic, question which has confounded me. I have 2 targets. Each target contains a file that has references to a class in the other target. I can't build successfully because the first target can never compile since t

Re: Fail build when 'replace' task cannot find expected number of tokens

2008-02-21 Thread Prashant Reddy
I solved this problem like this, on advice of another colleague. * the output of the tasks * Look for occurrences of the string "Replaced 0 occurrences" in the recorded output * If above said pattern occurs fail the build. Of course this approach still does not cover usecase when you are exp

Re: Trying to intersect resources(?)

2008-02-21 Thread Dimitris Mouchritsas
Dimitris Mouchritsas wrote: Hi all, I'm trying to write an uptodate target for an xdoclet target to depend upon, so xdoclet doesn't get called every time. The objects I'm trying to check for have hibernate mapping files. The problem is, not all of them have corresponding mapping files. So for

Re: sshexec hangs

2008-02-21 Thread Steve Loughran
Z W wrote: Hi I have But for unknown reason, sshexec hangs when executing Ant 1.7 sun_files: [sshexec] Connecting to sun01:22 Why ? Anything I could do to overcome the hanging ? can you telnet to that port by hand? telnet sun01 22 can you ssh to that machine by hand? -- Steve Lou

Trying to intersect resources(?)

2008-02-21 Thread Dimitris Mouchritsas
Hi all, I'm trying to write an uptodate target for an xdoclet target to depend upon, so xdoclet doesn't get called every time. The objects I'm trying to check for have hibernate mapping files. The problem is, not all of them have corresponding mapping files. So for example the following target:

sshexec hangs

2008-02-21 Thread Z W
Hi I have But for unknown reason, sshexec hangs when executing Ant 1.7 sun_files: [sshexec] Connecting to sun01:22 Why ? Anything I could do to overcome the hanging ? Thanks