Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 nameFriend
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 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.

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

Current Time: Wed Jun 20 10:01:06 GMT 2018

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

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

Back to the top