Re: how to invoke ant via java

2005-01-19 Thread Alan Gutierrez
* softgnostics k <[EMAIL PROTECTED]> [2005-01-19 15:01]: > Hi all, > > I am newbie to ant and have one query. My application has a new > menu.This menu creates a build.xml Ant file. Now, when this menu is > invoked, its action should call Ant build, so that the build.xml will > do what is necessa

Re: how to invoke ant via java

2005-01-19 Thread Maik Dobryn
Hi vivek, have a look at the following class. Best regards, Maik import java.io.File; import org.apache.tools.ant.*; public class AntExecuterImpl { private String buildFileName; private String executeTarget; private String buildDir = ""; private String property = ""; public

Re: java.io.IOException: exectable not found

2005-01-19 Thread Alexey N. Solofnenko
Maybe it contains a path to an interpreter (first line after #!) that does not exist on your system, or it is not available under your user id. - Alexey. Jirong Hu wrote: Hi I am working on Solaris 10 and trying to invoke SunOne's web service compiler to generate the static stub. But Ant can't fi

java.io.IOException: exectable not found

2005-01-19 Thread Jirong Hu
Hi I am working on Solaris 10 and trying to invoke SunOne's web service compiler to generate the static stub. But Ant can't find the exectuable. Any idea? Jirong bash-2.05b$ ant -verbose wscomp

RE: Zip Task w/ Empty Folders

2005-01-19 Thread Charles Daniels
Are you sure the empty folders are not zipped? When you view the zip file with WinZip, you won't actually see the entries for empty folders. I was fooled by this as well, until I unzipped the file to a clean location and saw that the empty directories were created even though I couldn't see them i

RE: how to invoke ant via java

2005-01-19 Thread Conelly, Luis (GE Energy, Non GE, GENE)
Follow the whole thread. You might find some usefull information. http://marc.theaimsgroup.com/?l=ant-user&m=107668689014077&w=2 HTH - Luis -Original Message- From: softgnostics k [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 12:22 PM To: user@ant.apache.org Subject: how to

Zip Task w/ Empty Folders

2005-01-19 Thread Brent Bain
Hello: I'm scratching my head over this one. I need to have the zip file that I'm going to deploy include all the empty folders that the build creates. I have tried manually setting the 'filesonly=false' attribute but that still did not create the zip file with the empty folders. Now I can pla

how to invoke ant via java

2005-01-19 Thread softgnostics k
Hi all, I am newbie to ant and have one query. My application has a new menu.This menu creates a build.xml Ant file. Now, when this menu is invoked, its action should call Ant build, so that the build.xml will do what is necessary. How can I do it? That is, how to call the Ant via java? Is there

Re: Java task executing embedded jython fails to find scripting module

2005-01-19 Thread Alexey N. Solofnenko
I have had a similar problem. In my situation I execute ANT preprocessor written in Jython, then ANT itself, then some script within ANT. The problem was that Jython launcher used a single state class and did not reinitialize it when a script is executed from ANT. To fix the problem I had to wr

Java task executing embedded jython fails to find scripting module

2005-01-19 Thread Karr, David
I'm having an issue which seems to be caused by my Ant configuration, but it's involving some other tools. If you're not familiar with these other tools, either ignore this or try to muddle through it. I'm using WebLogic's WLST tool, which uses Jython (Python interpreter in Java). I'm trying to

Re: Remove extension from a file name

2005-01-19 Thread Gerard Janssen
The attached class contains a custom task that will do the trick. The javadoc explains how to use it. Gerard On Wednesday 19 January 2005 16:36, Dick, Brian E. wrote: > I need to remove the extension from a file name. The basename task > almost works when specifying the suffix attribute. How

Re: how to invoke ant via java

2005-01-19 Thread Rhino
Have you considered using Eclipse, which is a great freeware IDE with Eclipse already built in, rather than trying to "roll your own"? Or do you *want* to re-invent the wheel? Rhino - Original Message - From: "softgnostics k" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 19, 2005 3:0

RE: how to invoke ant via java

2005-01-19 Thread Radha Sangal
I used Runtime.exec () to invoke ant -Original Message- From: softgnostics k [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 3:01 PM To: user@ant.apache.org Subject: how to invoke ant via java Hi all, I am newbie to ant and have one query. My application has a new menu.This

RE: Remove extension from a file name

2005-01-19 Thread Matt Benson
I would probably use pathconvert with a regexpmapper then. -Matt --- "Dick, Brian E." <[EMAIL PROTECTED]> wrote: > I just want the string. > > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 19, 2005 2:47 PM > To: Ant Users List > Subject: RE

RE: Remove extension from a file name

2005-01-19 Thread Dick, Brian E.
I just want the string. -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 2:47 PM To: Ant Users List Subject: RE: Remove extension from a file name Do you mean you just want the string, or you want to rename the file? Either way you can do

how to invoke ant via java

2005-01-19 Thread softgnostics k
Hi all, I am newbie to ant and have one query. My application has a new menu.This menu creates a build.xml Ant file. Now, when this menu is invoked, its action should call Ant build, so that the build.xml will do what is necessary. How can I do it? That is, how to call the Ant via java? Is there

RE: Remove extension from a file name

2005-01-19 Thread Matt Benson
Do you mean you just want the string, or you want to rename the file? Either way you can do it with a regexpmapper. HTH, Matt --- "Dick, Brian E." <[EMAIL PROTECTED]> wrote: > With which task? I already have the file name with > extension in a property. I need the file name sans > extension in

RE: Remove extension from a file name

2005-01-19 Thread Dick, Brian E.
With which task? I already have the file name with extension in a property. I need the file name sans extension in a new property. BTW, I found the propertyregex task in ant-contrib. I can use that if there is no other way. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE

ignoring CLASSPATH inside a junit task

2005-01-19 Thread ippi
Hi, I was wondering if there is a way to get a task which contains a to ignore the CLASSPATH enviromental variable altogether. I've tried using the fork and newenvironment attributes in addition to the env, sysproperty and jvmarg nested elements but nothing seems to prevent the CLASSPATH from

Re: AW: Remove extension from a file name

2005-01-19 Thread Ivan Ivanov
There is also a longer javascript solution, for those who do not know regular expressions very well: $${basename} is ${basename} Regards Ivan --- [EMAIL PROTECTED] wrote: > using regexps > (.*)\..* --> \1 > > Jan > > > -Ursprüngliche Nachricht- > > Von:

AW: Remove extension from a file name

2005-01-19 Thread Jan . Materne
using regexps (.*)\..* --> \1 Jan > -Ursprüngliche Nachricht- > Von: Dick, Brian E. [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 19. Januar 2005 16:36 > An: Ant Users List > Betreff: Remove extension from a file name > > I need to remove the extension from a file name. The basen

Remove extension from a file name

2005-01-19 Thread Dick, Brian E.
I need to remove the extension from a file name. The basename task almost works when specifying the suffix attribute. However, I don't know the value of the suffix. Does anyone know how I can remove the extension (suffix) from a file name? Later, BEDick --

RE: Stopping an ant target

2005-01-19 Thread Dick, Brian E.
A file-based semaphore. That's easy. Thanks Jan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 8:21 AM To: user@ant.apache.org Subject: AW: Stopping an ant target The simplest thing which comes into my mind is (if the monitor is y

Re: Setting variable classpath based on user input

2005-01-19 Thread Rhino
I'm putting this back on this list so that others can help you - and learn from your question and the responses you get. I'm afraid I can't help any further with your problem. Rhino - Original Message - From: "Swathi Rao" <[EMAIL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]> Sent: Wednesd

AW: Stopping an ant target

2005-01-19 Thread Jan . Materne
The simplest thing which comes into my mind is (if the monitor is your own work) monitor an additional file, the "heartbeat file". - When the monitor application starts it generates the file and monitors its existence - When it ends, it deletes the file - If the monitor app recognizes that the file

Stopping an ant target

2005-01-19 Thread Dick, Brian E.
This is more of a java question, but I would appreciate your help. I have a java application that I start from ant. This program continuously monitors our database for cpu utilization, connection attempts, and other general health statistics. Currently, when I want to stop the application for mai