Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to access project dir from server deploy ant
How to access project dir from server deploy ant [message #212978] Fri, 25 April 2008 21:14
No real name is currently offline No real name
Messages: 13
Registered: July 2009
Junior Member
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
working dir.

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.

Thanks,
Rochelle
Previous Topic:Starting Liferay Tomcat bundle from Eclipse
Next Topic:Reproduce WTP client generation in ant
Goto Forum:
  


Current Time: Thu Oct 30 12:28:14 GMT 2014

Powered by FUDForum. Page generated in 0.02570 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software