Author: brett
Date: Mon Jan 30 12:16:39 2012
New Revision: 1237617
URL: http://svn.apache.org/viewvc?rev=1237617&view=rev
Log:
[NPANDAY-480] utilise frameworkVersion if available, though it is constrained
to one version for all packages
Modified:
incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday/plugin/azure/CreateCloudServicePackageMojo.java
Modified:
incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday/plugin/azure/CreateCloudServicePackageMojo.java
URL:
http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday/plugin/azure/CreateCloudServicePackageMojo.java?rev=1237617&r1=1237616&r2=1237617&view=diff
==============================================================================
---
incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday/plugin/azure/CreateCloudServicePackageMojo.java
(original)
+++
incubator/npanday/trunk/plugins/azure-maven-plugin/src/main/java/npanday/plugin/azure/CreateCloudServicePackageMojo.java
Mon Jan 30 12:16:39 2012
@@ -212,15 +212,15 @@ public class CreateCloudServicePackageMo
);
}
+ // TODO: enable configuration of different framework pr. role;
default to frameworkVersion
Properties properties = new Properties();
- properties.setProperty( "TargetFrameworkVersion", "v4,0" );
+ String v = frameworkVersion != null ? "v" + frameworkVersion :
"v4.0";
+ properties.setProperty( "TargetFrameworkVersion", v );
if ( entryPoint.exists() )
{
properties.setProperty( "EntryPoint", entryPoint.getName() );
}
- // TODO: enable configuration of different framework pr. role;
default to frameworkVersion
- // TODO: save roleprops file somewhere else?
File rolePropertiesFile = new
File(project.getBuild().getDirectory(), artifact.getArtifactId() +
".roleproperties");
FileWriter writer = null;
try