You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Atra <dh...@mail.ru> on 2011/05/23 12:24:56 UTC
Formatting classpath in Manifest with dependency plugin
Hi,
I am trying to create the following Manifest tag:
Custom-Classapth: libs/lib1.jar libs/lib2.jar
With the following configuration on Windows machine:
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<configuration>
<outputFilterFile>true</outputFilterFile>
<pathSeparator>\u0020</pathSeparator>
<fileSeparator>/</fileSeparator>
<prefix>libs</prefix>
<outputFile>classpath.properties</outputFile>
</configuration>
</plugin>
I get: libs/lib1.jar/u0020libs/lib2.jar
And this leads to wrong classpath tag inside Manifest file (/u0020 instead
of whitespace).
Is there a way so "/" file separator will not conflict with whitespace path
separator?
Thanks
--
View this message in context: http://maven.40175.n5.nabble.com/Formatting-classpath-in-Manifest-with-dependency-plugin-tp4418636p4418636.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Formatting classpath in Manifest with dependency plugin
Posted by Atra <dh...@mail.ru>.
Unfortunately, using only CDATA with whitespace doesn't work either - default
path separator ";" will be used by the plugin
--
View this message in context: http://maven.40175.n5.nabble.com/Formatting-classpath-in-Manifest-with-dependency-plugin-tp4418636p4418799.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Formatting classpath in Manifest with dependency plugin
Posted by Stephen Connolly <st...@gmail.com>.
yes but did you try with the CDATA as whitespace is trimmed but CDATA should not
On 23 May 2011 11:38, Atra <dh...@mail.ru> wrote:
> I tried <pathSeparator></pathSeparator> but this didn't change anything.
>
> Looks like all "\", being default Win file separators, are replaced with "/"
> and this bug whitespace character definition.
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Formatting-classpath-in-Manifest-with-dependency-plugin-tp4418636p4418666.html
> Sent from the Maven - Users mailing list archive at Nabble.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: Formatting classpath in Manifest with dependency plugin
Posted by Atra <dh...@mail.ru>.
I tried <pathSeparator></pathSeparator> but this didn't change anything.
Looks like all "\", being default Win file separators, are replaced with "/"
and this bug whitespace character definition.
--
View this message in context: http://maven.40175.n5.nabble.com/Formatting-classpath-in-Manifest-with-dependency-plugin-tp4418636p4418666.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Formatting classpath in Manifest with dependency plugin
Posted by Stephen Connolly <st...@gmail.com>.
have you tried <![CDATA[ ]]>
On 23 May 2011 11:24, Atra <dh...@mail.ru> wrote:
> Hi,
>
> I am trying to create the following Manifest tag:
>
> Custom-Classapth: libs/lib1.jar libs/lib2.jar
>
> With the following configuration on Windows machine:
>
> <plugin>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>2.1</version>
> <configuration>
> <outputFilterFile>true</outputFilterFile>
> <pathSeparator>\u0020</pathSeparator>
> <fileSeparator>/</fileSeparator>
> <prefix>libs</prefix>
> <outputFile>classpath.properties</outputFile>
> </configuration>
> </plugin>
>
> I get: libs/lib1.jar/u0020libs/lib2.jar
>
> And this leads to wrong classpath tag inside Manifest file (/u0020 instead
> of whitespace).
> Is there a way so "/" file separator will not conflict with whitespace path
> separator?
>
> Thanks
>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Formatting-classpath-in-Manifest-with-dependency-plugin-tp4418636p4418636.html
> Sent from the Maven - Users mailing list archive at Nabble.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