Skip to content

Commit

Permalink
metafast is now as a executable sh or bat script
Browse files Browse the repository at this point in the history
  • Loading branch information
svkazakov committed Nov 11, 2014
1 parent bb7cd85 commit e89bae3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
<property name="itmo-assembler.path" value="lib/itmo-assembler.jar"/>
<property name="args4j.path" value="lib/args4j-2.0.21.jar"/>

<property name="metafast.main" value="Runner"/>
<property name="metafast.jar" value="metafast.jar"/>
<property name="project.main" value="Runner"/>
<property name="project.name" value="metafast"/>
<property name="project.jar" value="${jars.dir}/${project.name}.jar"/>
<property name="project.sh" value="${jars.dir}/${project.name}.sh"/>
<property name="project.bat" value="${jars.dir}/${project.name}.bat"/>



Expand All @@ -39,10 +42,10 @@
<arg value="ToolsScanner"/>
</exec>

<jar destfile="${jars.dir}/${metafast.jar}"
<jar destfile="${project.jar}"
basedir="${bin.dir}" duplicate="preserve">
<manifest>
<attribute name="Main-Class" value="${metafast.main}"/>
<attribute name="Main-Class" value="${project.main}"/>
</manifest>

<zipfileset src="${args4j.path}" excludes="META-INF/*.SF"/>
Expand All @@ -51,6 +54,15 @@
<zipfileset src="${itmo-assembler.path}" excludes="META-INF/*.SF"/>
</jar>

<concat destfile="${project.sh}" binary="true">
<filelist files="src/stub.sh,${project.jar}"/>
</concat>
<chmod file="${project.sh}" perm="a+x"/>

<concat destfile="${project.bat}" binary="true">
<filelist files="src/stub.bat,${project.jar}"/>
</concat>

<delete dir="${bin.dir}"/>
</target>

Expand Down
Binary file modified lib/itmo-assembler.jar
Binary file not shown.

0 comments on commit e89bae3

Please sign in to comment.