Re: calling Ant from java

2008-06-08 Thread Chris Green
Just done a google on 'calling ant from java' and one of the results I got was someone else asking the same question. http://www.junlu.com/msg/17340.html Purhaps the resulting answers to his question may help you. Chris On Mon, Jun 9, 2008 at 8:43 AM, Sonal Bannore < [EMAIL PROT

calling Ant from java

2008-06-08 Thread Sonal Bannore
Hi, I am calling ant from java program. When I am calling the my-build.xml, it gives parsing error as invalid file or cannot be read. My-build.xml has import statement. When I remove that statement(import), the parsing error disappers, and the code works fine. I have ant.jar and ant

Re: calling ant from java

2008-06-06 Thread supareno
which version of java ant ant (jars) are you using?? maybe that your ant jar version are not compatible with the import task :-) check out this link to see how to use import http://ant.apache.org/faq.html#xml-entity-include hope this help... supareno Hi, I am calling ant from java code

calling ant from java

2008-06-06 Thread Sonal Bannore
Hi, I am calling ant from java code. The build.xml which I am calling from java code has statement inside it. This current build.xml imports another another build1.xml. When this file is called from java code, it throws exception build.xml is invalid or cannot be read. But if the import

Re: Calling Ant from Java program - Help with ProjectHelper class!]

2005-09-07 Thread Frank Harnack
) { } } Regards Frank -- Frank Harnack 47269 Duisburg Deutschland (Germany) -Ursprüngliche Nachricht- Von: Stephen Nesbitt [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. September 2005 04:25 An: user@ant.apache.org Betreff: Calling Ant from Java program - Help with Proj

Calling Ant from Java program - Help with ProjectHelper class!

2005-09-06 Thread Stephen Nesbitt
All: I am trying to invoke an Ant build from within a java program. The build system itself includes both: - a namespace declarations ()) The API docs reference 2 helpers - ProjectHelper2 and ProjectHelperImpl. I can't get either to work. If I use ProjectHelperImpl the parse fails with an "Un

Re: Suppressing DOS window when calling Ant from Java

2004-11-15 Thread Laconia Data Systems
start /B Dont ask me how I know that- Martin- - Original Message - From: "Sharad Jain" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 15, 2004 6:00 PM Subject: Suppressing DOS window when calling Ant from Java > I am trying to embed Ant i

Suppressing DOS window when calling Ant from Java

2004-11-15 Thread Sharad Jain
I am trying to embed Ant into my application. The following code gives me what I need. executeAnt(String antfile, String target, PrintStream myOut, PrintStream myErr, int logLevel) { ProjectHelper helper = ProjectHelper.getProjectHelper(); Project project = new Project(); proj

RE: antcall task problems when calling ant from java

2003-11-20 Thread Bender, Christopher
calling ant from java Looking at: src/testcases/org/apache/tools/ant/BuildTestFile.java one needs to init the project and set the user property ant.file as well: project.init(); project.setUserProperty( "ant.file" , new File(filename).getAbsolutePath()); Peter On Thursday 20 November

Re: antcall task problems when calling ant from java

2003-11-20 Thread peter reilly
hristopher wrote: > PS. When I call the same file using the command line ant tool (as opposed > through java) the build works fine. > > -Original Message- > From: Bender, Christopher > Sent: Thursday, November 20, 2003 10:26 AM > To: Ant Users List > Subject: antcall t

RE: antcall task problems when calling ant from java

2003-11-20 Thread Bender, Christopher
PS. When I call the same file using the command line ant tool (as opposed through java) the build works fine. -Original Message- From: Bender, Christopher Sent: Thursday, November 20, 2003 10:26 AM To: Ant Users List Subject: antcall task problems when calling ant from java Hey, I

antcall task problems when calling ant from java

2003-11-20 Thread Bender, Christopher
Hey, I have a buildfile that is named something other than build.xml, for example, build.20031120.xml. I then do the following to setup the project: File buildFile = new File(getTempBuildFileLoc()); project.setBaseDir(new File(getResourceDir()); ProjectH