product.version
in {nbdir}\harness\nbi\stub\ext\infra\build\products\helloworld\build.properties
and the
version
attribute in <create-bundle> <component
in {nbdir}\harness\nbi\stub\build.xml
To make this dynamic, so you can change versions from your build, you will need to modify the following files:
in
{nbdir}\harness\nbi\stub\ext\infra\build\products\helloworld\build.properties
change 67 to:
#Changed from the hard coded "1.0.0.0.0"
product.version={product-version}
on line 166 in
{nbdir}\harness\nbi\stub\build.xml
<component uid="${main.product.uid}" version="${product-version}"/> <!-- changed version to version="${product-version}" from hard coded string version="1.0.0.0.0"-->
In template.xml:
after line 141, 131 and 122 add the following:
<replacefilter token="{product-version}" value="${product-version}"/> <!-- Added to do the substitution -->
after line 84:
<property name="product-version" value="${suite.props.app.version}"/>
And finally, in {project}\nbproject\project.properties"
add:
# application / product version MUST be formated as N.N.N.N.N
app.version=15.0.0.0.0
Since you've changed Netbeans "installed" code, you might want to place it under version control.
This shouldn't be so hard. But like everything else in Netbeans, there you have it. Your new install will over-right your old ones now.
No comments:
Post a Comment