Re: Killing Ant process through shell script when multiple Java processes are running...

2009-11-25 Thread robert lazarski
On Wed, Nov 25, 2009 at 6:49 AM, Harry_ wrote: > > And one more thing I would like to ask is about how to get the list of > processes created by a process. I want this to make sure that all the > processes created by parent ant process are also killed once I Killed ant > process. Any way ant can w

Re: Launch Ant build from Java

2009-09-25 Thread robert lazarski
On Fri, Sep 25, 2009 at 1:17 PM, Jean-Baptiste BRIAUD -- Novlog wrote: > Hi, > > I'd like to launch an Ant build from Java (from a servlet in a Tomcat > server). > > What would you advise me to do that ? > Should I launch it from OS using exec or should I try to use Ant classes > from my own class

Re: exec unix script not working for me

2009-07-21 Thread robert lazarski
ript file is being pulled from SVN into TeamCity's work area when > the build is run. Its from there that I'm trying to execute the script. Hmm, try: > > - Original Message > From: robert lazarski > To: Ant Users List > Sent: Tuesday,

Re: exec unix script not working for me

2009-07-21 Thread robert lazarski
On Tue, Jul 21, 2009 at 11:21 AM, Amy Davis wrote: > > I'm having trouble getting a unix script to execute through my ant script. > What am I doing wrong? > > /u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/build.xml:62: > Execute failed: java.io.IOException: Cannot run program "runSqlP

Re: Running ant programmatically using API

2009-05-11 Thread robert lazarski
On Mon, May 11, 2009 at 11:51 AM, Cole, Derek E wrote: > Hi All. If I am creating an ANT project programmatically with the Java > API, and I want my invoked instance of Ant to have the same classpath as > my system, how can I do this? > > > > I have tried a few different things, but none seem to w

Re: Can't find tools.jar when invoking ant programatically

2009-01-16 Thread robert lazarski
On Fri, Jan 16, 2009 at 12:11 PM, Scot P. Floess wrote: > > I don't think setting the property as you have done is exactly correct... At > least once the JVM is up and running... I'd definitely set JAVA_HOME in > your environment first...before running... > Invoking ant programatically starts an

Re: Can't find tools.jar when invoking ant programatically

2009-01-16 Thread robert lazarski
On Fri, Jan 9, 2009 at 5:42 PM, Scot P. Floess wrote: > > Uh yeah... > > Your JAVA_HOME should point to /usr/local/jdk1.6.0_11 > Well, I tried this: System.setProperty("java.home", "/usr/local/jdk1.6.0_11"); Project project = new Project(); ... project.executeTarget(project.getDefaultTarget());

Re: Can't find tools.jar when invoking ant programatically

2009-01-09 Thread robert lazarski
On Fri, Jan 9, 2009 at 5:12 PM, Scot P. Floess wrote: > > If you type javac at the command line, what do you see? > /root> javac Usage: javac where possible options include: Something screwy is going on, the error: ERROR: /programs/atadapter/oa/openAdapter/ati.build.xml:47: Unable to find a

Re: Can't find tools.jar when invoking ant programatically

2009-01-09 Thread robert lazarski
On Fri, Jan 9, 2009 at 3:40 PM, Scot P. Floess wrote: > What does your javac line look like in your build.xml? > Thanks for the reply: With definitions: - R - To unsubscribe, e-mail: user-uns

Can't find tools.jar when invoking ant programatically

2009-01-09 Thread robert lazarski
Hi all, I'm running ant 1.7.0 with jdk1.6.0_11 on linux. I have the jdk, and not the jre. However, I get this error when invoking ant programatically, via "project.executeTarget(project.getDefaultTarget())" and the like. Here's my error: /programs/atadapter/oa/openAdapter/ati.build.xml:49: Unable

Filtering on ${} instead of @@

2008-09-11 Thread robert lazarski
Hi all, I searched the archives but couldn't find a solution. For example, I have a file named filter_me.txt with its contents: ${foo} In filter_me.properties I have: foo=bar I'd like to use a simple filter like: Is the