| How to locate a given project given the name and a workspace location [message #149290] | 
Sat, 25 October 2003 10:38   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: use.reply.to.invalid 
 
We use eclipse for development of several projects sharing subprojects,  
and with a final requirement for each project to be able to build  
properly from ant. 
 
In order to do so, I would like to write an ant task which can run "ant  
clean; cvs update -dP; ant build" for each subproject for the current  
project.  In order to do so, I need to locate the physical location for  
a given subproject, given the name of the subproject (which I find in  
..project) and the location of the workspace.   It is not enough to  
assume the default location in the workspace. 
 
Where would I locate this?  My initial attempt at looking at files in  
the workspace/.metadata did not make me much wiser, and I don't think  
this is stored with the eclipse distribution.  I would like a method  
that works outside of Eclipse, but if the best way to do this is inside  
Eclipse, that would work too.  Is there an easy way to get this? 
 
Any suggestions? 
 
Best regards, 
--  
   Thorbjoern Ravn Andersen      "...plus...Tubular Bells!"
 |  
 |  
  | 
| Re: How to locate a given project given the name and a workspace location [message #153250 is a reply to message #149290] | 
Wed, 05 November 2003 17:59   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: John_Arthorne.oti.com_ 
 
org.eclipse.core.resources plugin provides an ant task called  
ConvertPath.  Given a resource path (for example "/MyProject") it will  
compute the file system path.  See javadoc for details. 
- 
 
Thorbjørn Ravn Andersen wrote: 
> We use eclipse for development of several projects sharing subprojects,  
> and with a final requirement for each project to be able to build  
> properly from ant. 
>  
> In order to do so, I would like to write an ant task which can run "ant  
> clean; cvs update -dP; ant build" for each subproject for the current  
> project.  In order to do so, I need to locate the physical location for  
> a given subproject, given the name of the subproject (which I find in  
> .project) and the location of the workspace.   It is not enough to  
> assume the default location in the workspace. 
>  
> Where would I locate this?  My initial attempt at looking at files in  
> the workspace/.metadata did not make me much wiser, and I don't think  
> this is stored with the eclipse distribution.  I would like a method  
> that works outside of Eclipse, but if the best way to do this is inside  
> Eclipse, that would work too.  Is there an easy way to get this? 
>  
> Any suggestions? 
>  
> Best regards,
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.14711 seconds