ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45739] Problems with BaseDir when the ant is started as Java library from Java Application
Date Fri, 05 Sep 2008 07:36:43 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45739





--- Comment #5 from Miroslav Nachev <miro@space-comm.com>  2008-09-05 00:36:43 PST ---
When I am calling project.getBaseDir() before project.init() which is located
in runBuild the problem is not solved because the retrieved directory is the
place from where the application is started instead to be the parent directory
of the build file. I need baseDir to be parent directory of build file.

Also I am not agree that in the code System.getProperty("user.dir") is not
used. The actual usage is:
   System.getProperty("user.dir") - 10 times
      1 time in org.apache.tools.ant.Main
      1 time in org.apache.tools.ant.launch.Locator
      1 time in org.apache.tools.ant.taskdefs.Execute
      1 time in org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbc
      1 time in org.apache.tools.ant.types.Path
      1 time in org.apache.tools.ant.util.FileUtils
      1 time in org.apache.tools.ant.ProjectTest
      3 times in org.apache.tools.ant.util.FileUtilsTest
   System.getProperties().put("user.dir", ...) - 2 times
      2 times in org.apache.tools.ant.taskdefs.Execute


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message