[ 
http://jira.codehaus.org/browse/MNBMODULE-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209443#action_209443
 ] 

Pavel Jisl commented on MNBMODULE-76:
-------------------------------------

This example is working for me. But my setup is:

parent pom.xml:
profile snapshot, uses buildnumber maven plugin to set property ${num} to 
timestamp
default profile, that set property ${num} to empty string

module pom.xml:
<version>1.0${num}-SNAPSHOT</version>

If I run default profile, version is correctly replaced, constructed jar and 
nbm has right name and also in manifest file is correct string: "1.0-SNAPSHOT".

If I run snapshot profile, version is not correctly replaced, constructed jar 
and nbm has right name, but in manifest file is string "1.0${num}-SNAPSHOT" 
(project.getVersion() in NetbeansManifestUpdateMojo.java is returning 
"1.0${num}-SNAPSHOT".

It looks like I'm trying to replace ${num} using buildnumber-maven-plugin too 
late.

> AdaptNBVersion - Add timestamp to OpenIDE-Module-Specification-Version
> ----------------------------------------------------------------------
>
>                 Key: MNBMODULE-76
>                 URL: http://jira.codehaus.org/browse/MNBMODULE-76
>             Project: Maven 2.x Netbeans Module Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Pavel Jisl
>            Assignee: Milos Kleint
>
> When creating webstart application, we need to solve problem with versions in 
> versioned JNLP download server. If the SNAPSHOT versions are used, the major 
> and minor versions are used and there is no chance for versioned JNLP 
> download to serve fresh versions of packages.
> There is a resolved issue in NetBeans nbbuild ant task MakeJNLP (see 
> http://www.netbeans.org/issues/show_bug.cgi?id=160613 ), which gets version 
> from OpenIDE-Module-Specification-Version or Specification-Version and puts 
> it into version.xml and version attribut in jnlp file. Original version of 
> path used OpenIDE-Module-Implementation-Version (Implementation-Version), but 
> it was changed into OpenIDE-Module-Specification-Version 
> (Specification-Version) by developers of NetBeans.
> Actual version of nbm-maven-plugin changes string "-SNAPSHOT" in version to 
> timestamp in case of OpenIDE-Module-Implementation-Version, but in case of 
> OpenIDE-Module-Specification-Version this string (and others, like RC, ...) 
> are stripped without possibility to change this behavior.
> Proposed solution is to change behavior in AdaptNBVersion.java to behave same 
> for both "spec" and "impl" types. We need to replace string "-SNAPSHOT" for 
> OIDE-M-S-V by timestamp, as it is in case of OIDE-M-I-V.
> There should be also parameter, specifying pattern for timestamp - default 
> should be "yyyyMMdd" and we can change it to eg. "yyyyMMddHHmmss"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to