hmm, thanks. im still trying to get accustomed to the source code. Usually when I look i have no idea where to start.
-----Original Message----- From: peter reilly [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 10:44 AM To: Ant Users List Subject: Re: antcall task problems when 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 2003 15:35, Bender, Christopher 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 task problems when calling ant from java > > > 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()); > > ProjectHelper.configureProject(project, buildFile); > > project.setProperty("homeDir", getAppHome()); > > > > The problem comes when I try and execute the project and ant attempts to > execute my antcall tasks, it gives the following: > > java.io.FileNotFoundException: C:\.......\xml\build.xml (The system cannot > find the file specified) > > It seems that when it tries to do the ant call it tries to look for a > build.xml file for some reason, even though i didnt even invoke the project > using build.xml. Is there a property I am forgetting to set? > > > > thx, > chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]