Hi Willie,

Please refer to this link
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-IsthereawaytospecifyadifferentoutputdirectorywithouthavingtoeditthepomorconfigurationfileeachtimeIdoabuild%3F

I think it is similar to what you are looking for, well except for the command line. :)

Hope this helps.

-allan

Willie Vu wrote:

${basedir} only gives me up to the project base path.  I still need to
construct the subdirectories from the groupId that user specifies when
using my archetype:create.  That's the part I don't know how to do.

On 12/22/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
If I rememer correctly, you can use ${basedir} wich point to the directory
where your pom file is located. So from there you can construct the path you
need. Hope it's help!

On 12/21/05, Willie Vu <[EMAIL PROTECTED]> wrote:
Archetype will create copy a resource (say file hello.xsl) into
subfolders of groupId (e.g. if groupId is com.foo.abc, the xsl file is
put into src/xsl/com/foo/abc/hello.xsl.)  In the hello.xsl, I need to
refer to the actual path where hello.xsl is located.

2 questions:

1. how do I construct a string representation to the full path where
hello.xsl is?
2. what are the properties available in replacing variables in
resources?  I know I can use ${groupId}, ${artifactId}.  What else?

Regards,


Willie Vu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Alexandre Poitras
Québec, Canada




--
Willie Vu

HKJUG - http://hkjug.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to