Skip to content

Commit

Permalink
edit build
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrandmartel committed Aug 10, 2015
1 parent 8825819 commit 4936ac5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 16 deletions.
1 change: 1 addition & 0 deletions bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/fr/
46 changes: 30 additions & 16 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<project default="create_run_jar" name="Create Runnable Jar for Project pcapngdecoder">

<property name="version" value="1.0" />

<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<target name="create_run_jar">
<jar destfile="${basedir}/release/pcapngdecoder-${version}.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="fr.bmartel.pcapdecoder.main.MainParser"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${basedir}/bin"/>
</jar>
</target>

<project default="build" name="compile-archive">

<property name="project-name" value="pcapngdecoder"/>

<property name="version" value="1.0" />

<path id="master-classpath">
<fileset dir="${basedir}/libs">
<include name="*.jar"/>
</fileset>
</path>

<target name="compile" description="Compile source">
<mkdir dir="bin" />
<javac srcdir="src" includes="**" destdir="bin" >
<classpath refid="master-classpath"/>
</javac>

<copy todir="bin">
<fileset dir="src" />
</copy>
</target>

<target name="build" depends="compile">
<jar destfile="${basedir}/release/${project-name}-${version}.jar">
<fileset dir="${basedir}/bin" />
<zipgroupfileset dir="${basedir}/libs" includes="**/*.jar" />
</jar>
</target>

</project>
Binary file modified release/pcapngdecoder-1.0.jar
Binary file not shown.

0 comments on commit 4936ac5

Please sign in to comment.