Apache NetBeans Bugzilla – Bug 22010 Ant not creating "record" file in project sub-directory Last modified: 2003-06-30 14:46:54 UTC
1. See attached build.xml
2. Ant (in netbeans) fails to create a log file using 
the "record" task when in a transient (cleanable) 
directory.  Ant on the command line handles this situation 
fine.
3. Using the attached build.xml, run the following targets 
in netbeans:
2. demo netBeans IDE will fail with message "build.xml [18] Problems creating a recorder entry."; however, this works fine on the command line.
I just realized that this problem shows up even if you 
don't clean the sub-directory, and even if you remove the 
<mkdir dir="build"> task from the "init" target (presuming 
the directory already exists).  So I guess this problem 
applies to creating record logs in any sub-directory of 
the netbeans project.
This is problem of Record task. It creates files relatively to 
directory from which the script __was executed__ while other tasks 
(like delete or mkdir) works relatively to build script file. I would 
recommend you to file bug against Record task in Ant bugzilla (and 
mention the number in this issue, please). If you try to execute your 
script from command line from different directory (eg C:\>ant 
-buildfile temp\build.xml demo) you will get the same error as from 
NB. Temporary solution might be to use basedir property in your Record 
task. HTH.
This is Apache NetBeans Bugzilla : the Apache NetBeans bug system. In case of problems with the functioning of Apache NetBeans Bugzilla, please contact bugzilla-admin@apache.org . Please Note: this e-mail address is only for reporting problems with Apache NetBeans Bugzilla. Mail about any other subject will be silently ignored.
  • | New
  • | Browse
  • | Search
  •