|How to access project dir from server deploy ant [message #212978]
||Fri, 25 April 2008 21:14
| No real name
Registered: July 2009
I'm working on a server adapter and have a serverdef file and the |
corresponding xml ant file with various deploy targets. I see properties
defined for project.working.dir and module.name and module.dir, but these
are all in the temporary location for directory deployment (mine expands
to .metadata/.... under my runtime configuration). I have a resource file
in my project and I need to tell my server to create the corresponding
resource by passing it the path to the file. The file is in the user's
Dynamic Web Project in a setup directory, but it is not copied to the
Is there a way to get to the project path in the ant file? Once there, I
can append the necessary pieces to find my file.
If not, is there a way to tell the deployment to copy this file to the
temp working dir? I'd prefer not to do this, but will if necessary.
Or, is there another way for me to pass the dir to my ant environment? I
was looking at my ServerBehavior publishModule code - in that case, the
module info (and its project and path) are there, but I'm not sure what to
do with it.
Powered by FUDForum
. Page generated in 0.01669 seconds