Wendy Smoak,

although I've already solutions (ironically, looking at the mvn.bat)
I'm very appreciate to your pointing. Sure later it will be required.

In this case solution is simple and fit to me.

some lines before call loop:
for %%i in ("%MYTOOL_HOME%\lib\mytool*") do set MYTOOL_JAR="%%i"

then
%MYTOOL_JAVA_EXE% %MYTOOL_OPTS% -classpath %MYTOOL_JAR% 
"-Dmytool.home=%MYTOOL_HOME%" org.tigris.mytool.App %MYTOOL_CMD_LINE_ARGS%

Cheers, Oleg

am Sunday, February 22, 2009 um 4:13 PM schrieben Sie:

> On Sun, Feb 22, 2009 at 7:25 AM, Oleg Taranenko
> <taranenko.for...@googlemail.com> wrote:

>> How I
>>  can rename the artifact jar from format mytool-1.0.1-SNAPSHOT.jar to
>>  mytool.jar, before packaging it into assembly?
>>
>>  I'm using now bootstrap batch file a la mvn.bat.
>> java -classpath %MYTOOL_HOME%\lib\mytool-1.0.1-SNAPSHOT.jar 
>> org.tigris.mytool.App
>>  I'd like to replace it with
>> java -classpath %MYTOOL_HOME%\lib\mytool.jar org.tigris.mytool.App
>> and do not changing mytool.bat from version to version.

> How about filtering the version number into mytool.bat automatically,
> so that you don't have to change it?

> If you do decide to change the filename, then the
> 'outputFileNameMapping' element in the assembly descriptor sounds like
> it might do what you want.

> http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet

> outputFileNameMapping    Sets the mapping pattern for all dependencies
> included in this assembly. Default is
> ${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}.
> (Since 2.2-beta-2; 2.2-beta-1 uses
> ${artifactId}-${version}${dashClassifier?}.${extension}) The default
> value is
> ${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}.




-- 
Mit freundlichen Grüßen
Oleg Taranenko
mailto:olegtarane...@googlemail.com



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

Reply via email to