Thanks, DD!
I had to use project.resolveFile(), but that got it going!
yes!
-Sol
On Jun 20, 2006, at 12:52 PM, Dominique Devienne wrote:
I have never used p.resolveFile() and am having a hard time finding
documentation on it. Is it Ant api or python?
Ant API. org.apache.tools.ant.Project#
I have never used p.resolveFile() and am having a hard time finding
documentation on it. Is it Ant api or python?
Ant API. org.apache.tools.ant.Project#resolveFile(String), returns
File or String, I don't recall. --DD
Would you use it directly inside
Thank a bunch for the reply!
I have never used p.resolveFile() and am having a hard time finding
documentation on it. Is it Ant api or python?
Would you use it directly inside ? Would you use it for
the sys.path.append() calls? If so, how?
I got that problem too, but my solution maybe too low level. In Jython
import folders are hard coded and read only, so I wrote my own launcher
that understood -M option and a special Java property and put them into
PySystemState.path list (for example, state.path.append(new
PyString(path));). I
The 'cwd' is never changed. What changes in the project's basedir,
based on the various attributes that accepts. See the table in
's documentation for details.
Personally, I always use instead of , to avoid messing
up the 'basedir'. You probably also want to use
p.resolveFile(relative_filename)