You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "ah2 sur communication-langages-et-systemes.com" <ah...@communication-langages-et-systemes.com> on 2005/07/17 19:50:56 UTC

M2 site plugin : new snapshot brings back and older issue yet fixed !

Hello,
 
I'am using M2 Site.
M2 just download new vesion of the plugins : nice !
but an old issue came back.
it's about the css files (maven-theme.css, etc...) in resources folder
that don't "reach" to the css folder in the target. 
They are over written by the original one.
the Jira issue is :
http://jira.codehaus.org/browse/MNG-546
and was fixed on the 7 of july by E. Venisse.
 
strange ????
did I do something wrong ?
Antoine
 
 
 

Re: How can i get the parent directory when i run Maven

Posted by rahul murthy <ra...@yahoo.com>.
thanks Brett....
that was all i was looking for...

thanks once again.

rahul.

--- Brett Porter <br...@gmail.com> wrote:

> <util:file name="${basedir}" var="f" />
> ...
> ${f.parent}
> ...
> 
> (f is a java.io.File, so f.parent is the equivalent
> of f.getParent())
> 
> - Brett
> 
> On 7/18/05, rahul murthy <ra...@yahoo.com>
> wrote:
> > 
> > Is there any way i can get the parent folder of
> > "basedir" from maven.xml when i run maven.
> > 
> > say i am executing maven from my "C:\temp\tmp" so
> my
> > basedir happens to be "C:\temp\tmp" but i want the
> > parent of "C:\temp\tmp" i.e just "C:\temp".
> > 
> > regards
> > Rahul.
> > 
> > 
> > 
> > 
> > 
> >
>
___________________________________________________________
> > Yahoo! Messenger - NEW crystal clear PC to PC
> calling worldwide with voicemail
> http://uk.messenger.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> users-help@maven.apache.org
> > 
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 



		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How can i get the parent directory when i run Maven

Posted by Brett Porter <br...@gmail.com>.
<util:file name="${basedir}" var="f" />
...
${f.parent}
...

(f is a java.io.File, so f.parent is the equivalent of f.getParent())

- Brett

On 7/18/05, rahul murthy <ra...@yahoo.com> wrote:
> 
> Is there any way i can get the parent folder of
> "basedir" from maven.xml when i run maven.
> 
> say i am executing maven from my "C:\temp\tmp" so my
> basedir happens to be "C:\temp\tmp" but i want the
> parent of "C:\temp\tmp" i.e just "C:\temp".
> 
> regards
> Rahul.
> 
> 
> 
> 
> 
> ___________________________________________________________
> Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: How can i get the parent directory when i run Maven

Posted by rahul murthy <ra...@yahoo.com>.
i am not using maven in multi project scenario.
like i have a project in CVS and 2 developers working
on it.

and the application uses some dependent files located
in the parent folder from where maven is excuted ,
like if the developers are running the apllication
from different location in thier dev environment like
say one is using C:\home\myproject and the other is
using C:\myproject than each has to maintain their own
maven.xml to locate the dependent files if we are able
to get the parent folder in maven.xml than we can
remove the hardcoded value of the location from 
maven.xml.


--- Jeff Jensen <je...@upstairstechnology.com>
wrote:

> Hmm, well many use this in multiproject to put the
> actual project source in
> a directory at the same level as the other projects,
> vs them as subprojects:
> 
> maven.multiproject.basedir=${basedir}/..
> 
> 
> Are you using it as a property to something, or
> directly yourself in code?
> If directly, ensure it is interpretted correctly
> (expanded) vs as the actual
> name of a file/dir.
> 
> 
> -----Original Message-----
> From: rahul murthy [mailto:rahul_1109@yahoo.com] 
> Sent: Sunday, July 17, 2005 2:59 PM
> To: Maven Users List
> Subject: RE: How can i get the parent directory when
> i run Maven
> 
> nope....
> 
> --- Jeff Jensen <je...@upstairstechnology.com>
> wrote:
> 
> > Does "${basedir}/.." work?
> >  
> > 
> > -----Original Message-----
> > From: rahul murthy [mailto:rahul_1109@yahoo.com]
> > Sent: Sunday, July 17, 2005 2:56 PM
> > To: Maven Users List
> > Subject: How can i get the parent directory when i
> run Maven
> > 
> > 
> > Is there any way i can get the parent folder of
> > "basedir" from maven.xml
> > when i run maven.
> > 
> > say i am executing maven from my "C:\temp\tmp" so
> my
> > basedir happens to be
> > "C:\temp\tmp" but i want the parent of
> "C:\temp\tmp"
> > i.e just "C:\temp".
> > 
> > regards
> > Rahul.
> > 
> > 
> > 	
> > 	
> > 		
> >
>
___________________________________________________________
> > 
> > Yahoo! Messenger - NEW crystal clear PC to PC
> > calling worldwide with
> > voicemail http://uk.messenger.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> > users-help@maven.apache.org
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> > users-help@maven.apache.org
> > 
> > 
> 
> 
> 
> 		
>
___________________________________________________________
> 
> How much free photo storage do you get? Store your
> holiday 
> snaps for FREE with Yahoo! Photos
> http://uk.photos.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 



		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: How can i get the parent directory when i run Maven

Posted by Jeff Jensen <je...@upstairstechnology.com>.
Hmm, well many use this in multiproject to put the actual project source in
a directory at the same level as the other projects, vs them as subprojects:

maven.multiproject.basedir=${basedir}/..


Are you using it as a property to something, or directly yourself in code?
If directly, ensure it is interpretted correctly (expanded) vs as the actual
name of a file/dir.


-----Original Message-----
From: rahul murthy [mailto:rahul_1109@yahoo.com] 
Sent: Sunday, July 17, 2005 2:59 PM
To: Maven Users List
Subject: RE: How can i get the parent directory when i run Maven

nope....

--- Jeff Jensen <je...@upstairstechnology.com>
wrote:

> Does "${basedir}/.." work?
>  
> 
> -----Original Message-----
> From: rahul murthy [mailto:rahul_1109@yahoo.com]
> Sent: Sunday, July 17, 2005 2:56 PM
> To: Maven Users List
> Subject: How can i get the parent directory when i run Maven
> 
> 
> Is there any way i can get the parent folder of
> "basedir" from maven.xml
> when i run maven.
> 
> say i am executing maven from my "C:\temp\tmp" so my
> basedir happens to be
> "C:\temp\tmp" but i want the parent of "C:\temp\tmp"
> i.e just "C:\temp".
> 
> regards
> Rahul.
> 
> 
> 	
> 	
> 		
>
___________________________________________________________
> 
> Yahoo! Messenger - NEW crystal clear PC to PC
> calling worldwide with
> voicemail http://uk.messenger.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 



		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: How can i get the parent directory when i run Maven

Posted by rahul murthy <ra...@yahoo.com>.
nope....

--- Jeff Jensen <je...@upstairstechnology.com>
wrote:

> Does "${basedir}/.." work?
>  
> 
> -----Original Message-----
> From: rahul murthy [mailto:rahul_1109@yahoo.com] 
> Sent: Sunday, July 17, 2005 2:56 PM
> To: Maven Users List
> Subject: How can i get the parent directory when i
> run Maven
> 
> 
> Is there any way i can get the parent folder of
> "basedir" from maven.xml
> when i run maven.
> 
> say i am executing maven from my "C:\temp\tmp" so my
> basedir happens to be
> "C:\temp\tmp" but i want the parent of "C:\temp\tmp"
> i.e just "C:\temp".
> 
> regards
> Rahul.
> 
> 
> 	
> 	
> 		
>
___________________________________________________________
> 
> Yahoo! Messenger - NEW crystal clear PC to PC
> calling worldwide with
> voicemail http://uk.messenger.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 



		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: How can i get the parent directory when i run Maven

Posted by Jeff Jensen <je...@upstairstechnology.com>.
Does "${basedir}/.." work?
 

-----Original Message-----
From: rahul murthy [mailto:rahul_1109@yahoo.com] 
Sent: Sunday, July 17, 2005 2:56 PM
To: Maven Users List
Subject: How can i get the parent directory when i run Maven


Is there any way i can get the parent folder of "basedir" from maven.xml
when i run maven.

say i am executing maven from my "C:\temp\tmp" so my basedir happens to be
"C:\temp\tmp" but i want the parent of "C:\temp\tmp" i.e just "C:\temp".

regards
Rahul.


	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with
voicemail http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


How can i get the parent directory when i run Maven

Posted by rahul murthy <ra...@yahoo.com>.
Is there any way i can get the parent folder of
"basedir" from maven.xml when i run maven.

say i am executing maven from my "C:\temp\tmp" so my
basedir happens to be "C:\temp\tmp" but i want the
parent of "C:\temp\tmp" i.e just "C:\temp".

regards 
Rahul.


	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE : ERROR... M2 site plugin : new snapshot brings back and older issue yet fixed !

Posted by "ah2 sur communication-langages-et-systemes.com" <ah...@communication-langages-et-systemes.com>.
I did something wrong ....
Sorry for disturbing...
Antoine

-----Message d'origine-----
De : ah2 sur communication-langages-et-systemes.com
[mailto:ah2@communication-langages-et-systemes.com] 
Envoyé : dimanche 17 juillet 2005 19:51
À : 'Maven Users List'
Objet : M2 site plugin : new snapshot brings back and older issue yet
fixed !


Hello,
 
I'am using M2 Site.
M2 just download new vesion of the plugins : nice !
but an old issue came back.
it's about the css files (maven-theme.css, etc...) in resources folder
that don't "reach" to the css folder in the target. 
They are over written by the original one.
the Jira issue is :
http://jira.codehaus.org/browse/MNG-546
and was fixed on the 7 of july by E. Venisse.
 
strange ????
did I do something wrong ?
Antoine
 
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org