Skip to content

Commit

Permalink
Reorganized project
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas authored and Andreas committed Sep 23, 2023
1 parent 7b08528 commit 6178911
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SshKeyFormats_GitHub</name>
<name>SshKeyFormats</name>
<comment></comment>
<projects>
</projects>
Expand Down
16 changes: 0 additions & 16 deletions Build.jardesc

This file was deleted.

53 changes: 53 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="build_jar" name="Create all Jars for Project SshKeyFormats">
<property name="version" value="23.0.1" />

<property name="projectsPath" value="${user.home}/git" />
<echo message="projectsPath: ${projectsPath}" />

<property name="buildPath" value="build" />
<echo message="buildPath: ${buildPath}" />

<target name="build_jar" depends="cleanup_before, create_jar, cleanup_after" />

<target name="cleanup_before">
<delete dir="${buildPath}/bin" />
<mkdir dir="${buildPath}/bin" />
</target>

<target name="create_jar">
<path id="build.classpath">
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</path>

<javac debug="true" nowarn="true" deprecation="false" destdir="${buildPath}/bin" fork="yes" source="1.8" target="1.8" srcdir="src/main/java" includeantruntime="false" encoding="UTF-8">
<classpath refid="build.classpath" />
</javac>

<jar destfile="${buildPath}/sshkeyformats-${version}.jar">
<manifest>
<attribute name="Version" value="${version}" />
</manifest>

<fileset dir="${buildPath}/bin" />

<fileset dir="" includes="LICENSE.txt"/>
</jar>

<jar destfile="${buildPath}/sshkeyformats-${version}_sources.jar">
<manifest>
<attribute name="Version" value="${version}" />
</manifest>

<fileset dir="src/main/java" includes="**/*.java"/>

<fileset dir="" includes="LICENSE.txt"/>
</jar>
</target>

<target name="cleanup_after">
<delete dir="${buildPath}/bin" />
</target>
</project>

0 comments on commit 6178911

Please sign in to comment.