Skip to content
Snippets Groups Projects
Commit 614f73dd authored by Ryan Izard's avatar Ryan Izard Committed by GitHub
Browse files

Merge pull request #676 from rizard/master

Set version and name when compiling using ant
parents 484307ff e8b6c3d5
No related branches found
No related tags found
No related merge requests found
...@@ -251,10 +251,15 @@ ...@@ -251,10 +251,15 @@
<target name="coverage" depends="instrument,test,coverage-report"/> <target name="coverage" depends="instrument,test,coverage-report"/>
<target name="dist" depends="compile,compile-test"> <target name="dist" depends="compile,compile-test">
<xmlproperty file="pom.xml" prefix="pom"/>
<echo message="Setting Floodlight version: ${pom.project.version}"/>
<echo message="Setting Floodlight name: ${pom.project.name}"/>
<jar destfile="${floodlight-jar}" filesetmanifest="mergewithoutmain"> <jar destfile="${floodlight-jar}" filesetmanifest="mergewithoutmain">
<manifest> <manifest>
<attribute name="Main-Class" value="${main-class}"/> <attribute name="Main-Class" value="${main-class}"/>
<attribute name="Class-Path" value="."/> <attribute name="Class-Path" value="."/>
<attribute name="Implementation-Version" value="${pom.project.version}"/>
<attribute name="Implementation-Title" value="${pom.project.name}"/>
</manifest> </manifest>
<fileset dir="${build}"/> <fileset dir="${build}"/>
<fileset dir="${resources}"/> <fileset dir="${resources}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment