-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finishing up the first draft of domain token auth.
- Loading branch information
Showing
7 changed files
with
202 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,94 @@ | ||
<?xml version="1.0"?> | ||
<project name="kmttg" basedir="." default="all"> | ||
<property name="rversion" value="v2.4p"/> | ||
<tstamp/> | ||
<property name="bversion" value="${DSTAMP}-${TSTAMP}"/> | ||
<property name="lib" value="lib"/> | ||
<property name="release" value="release"/> | ||
<property name="main" value="."/> | ||
<property name="main.class" value="com.tivo.kmttg.main.kmttg"/> | ||
<property name="debuglevel" value="source,lines,vars"/> | ||
<property name="target" value="1.8"/> | ||
<property name="source" value="1.8"/> | ||
<property name="rversion" value="v2.5-l"/> | ||
<tstamp/> | ||
<property name="bversion" value="${DSTAMP}-${TSTAMP}"/> | ||
<property name="lib" value="lib"/> | ||
<property name="release" value="release"/> | ||
<property name="main" value="."/> | ||
<property name="main.class" value="com.tivo.kmttg.main.kmttg"/> | ||
<property name="debuglevel" value="source,lines,vars"/> | ||
<property name="target" value="1.8"/> | ||
<property name="source" value="1.8"/> | ||
<path id="main.classpath"> | ||
<pathelement location="${lib}/jmdns.jar"/> | ||
<pathelement location="${lib}/tivo-libre.jar"/> | ||
<pathelement location="${lib}/jmdns.jar"/> | ||
<pathelement location="${lib}/tivo-libre.jar"/> | ||
<pathelement location="${lib}/httpclient5-5.1.3.jar"/> | ||
<pathelement location="${lib}/httpcore5-5.1.3.jar"/> | ||
</path> | ||
|
||
<target name="clean"> | ||
<delete dir="bin"/> | ||
<delete dir="dist"/> | ||
<delete dir="bin"/> | ||
<delete dir="dist"/> | ||
</target> | ||
|
||
|
||
<target name="create"> | ||
<mkdir dir="bin"/> | ||
<mkdir dir="${release}"/> | ||
</target> | ||
<target name="create-dist"> | ||
<mkdir dir="dist"/> | ||
<mkdir dir="dist/${dist}"/> | ||
<mkdir dir="dist"/> | ||
<mkdir dir="dist/${dist}"/> | ||
</target> | ||
<target name="create-dist-src" depends="create-dist"> | ||
<mkdir dir="dist/${dist}-src"/> | ||
|
||
<mkdir dir="dist/${dist}-src"/> | ||
</target> | ||
<target name="writeversion"> | ||
<echo file="${main}/version.txt" append="false" message="${ant.project.name}|${version}"/> | ||
</target> | ||
|
||
<target name="writeversion"> | ||
<echo file="${main}/version.txt" append="false" message="${ant.project.name}|${version}"/> | ||
</target> | ||
<target name="jar" depends="build"> | ||
<delete file="${release}/kmttg.jar"/> | ||
<jar destfile="${release}/kmttg.jar"> | ||
<fileset dir="${main}/bin"/> | ||
<fileset dir="${main}/images"/> | ||
<zipgroupfileset dir="${lib}" includes="jmdns.jar"/> | ||
<zipgroupfileset dir="${lib}" includes="tivo-libre.jar"/> | ||
<manifest> | ||
<attribute name="Main-Class" value="${main.class}" /> | ||
</manifest> | ||
</jar> | ||
<jar destfile="${release}/kmttg.jar"> | ||
<fileset dir="${main}/bin"/> | ||
<fileset dir="${main}/images"/> | ||
<zipgroupfileset dir="${lib}" includes="jmdns.jar"/> | ||
<zipgroupfileset dir="${lib}" includes="tivo-libre.jar"/> | ||
<zipgroupfileset dir="${lib}" includes="httpclient5-5.1.3.jar"/> | ||
<zipgroupfileset dir="${lib}" includes="httpcore5-5.1.3.jar"/> | ||
<manifest> | ||
<attribute name="Main-Class" value="${main.class}"/> | ||
</manifest> | ||
</jar> | ||
</target> | ||
<target name="build" depends="create"> | ||
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}"> | ||
<src path="src"/> | ||
<classpath refid="main.classpath"/> | ||
</javac> | ||
</target> | ||
<target name="init"> | ||
<property name="version" value="${bversion}"/> | ||
<property name="dist" value="kmttg_${version}"/> | ||
|
||
</target> | ||
<target name="all" depends="init,clean,build,jar,dist-both"/> | ||
<target name="release"> | ||
<property name="version" value="${rversion}"/> | ||
<antcall target="all"/> | ||
</target> | ||
<target name="dist-src" depends="create-dist-src"> | ||
<copy todir="dist/${dist}-src"> | ||
<fileset dir="."> | ||
<include name="src/**"/> | ||
<include name="build.xml"/> | ||
<include name="release/**"/> | ||
</fileset> | ||
</copy> | ||
<chmod file="dist/${release}/kmttg" perm="ugo+x"/> | ||
<chmod file="dist/${release}/kmttg.bat" perm="ugo+x"/> | ||
|
||
<zip destfile="dist/${dist}-src.zip"> | ||
<zipfileset dir="dist/${dist}-src" prefix="${dist}" | ||
includes="**" | ||
excludes="release META-INF"/> | ||
<zipfileset file="dist/${dist}-src/${release}/kmttg" filemode="755" | ||
prefix="${dist}"/> | ||
<zipfileset file="dist/${dist}-src/${release}/kmttg.bat" filemode="755" | ||
prefix="${dist}"/> | ||
</zip> | ||
|
||
<delete dir="dist/${dist}-src"/> | ||
</target> | ||
|
||
<target name="dist-both" depends="create-dist"> | ||
<antcall target="build"/> | ||
<copy todir="dist/${dist}/release"> | ||
<fileset dir="release"/> | ||
</copy> | ||
<chmod file="dist/${dist}/${release}/kmttg" perm="ugo+x"/> | ||
|
||
<zip destfile="dist/${dist}.zip"> | ||
<zipfileset dir="dist/${dist}/${release}" filemode="755" | ||
includes="**"/> | ||
</zip> | ||
<delete dir="dist/${dist}"/> | ||
</target> | ||
|
||
<target name="init"> | ||
<property name="version" value="${bversion}"/> | ||
<property name="dist" value="kmttg_${version}"/> | ||
</target> | ||
<target name="all" depends="init,clean,build,jar,dist-both"/> | ||
<target name="release"> | ||
<property name="version" value="${rversion}"/> | ||
<antcall target="all"/> | ||
</target> | ||
<target name="dist-src" depends="create-dist-src"> | ||
<copy todir="dist/${dist}-src"> | ||
<fileset dir="."> | ||
<include name="src/**"/> | ||
<include name="build.xml"/> | ||
<include name="release/**"/> | ||
</fileset> | ||
</copy> | ||
<chmod file="dist/${release}/kmttg" perm="ugo+x"/> | ||
<chmod file="dist/${release}/kmttg.bat" perm="ugo+x"/> | ||
<zip destfile="dist/${dist}-src.zip"> | ||
<zipfileset dir="dist/${dist}-src" prefix="${dist}" includes="**" excludes="release META-INF"/> | ||
<zipfileset file="dist/${dist}-src/${release}/kmttg" filemode="755" prefix="${dist}"/> | ||
<zipfileset file="dist/${dist}-src/${release}/kmttg.bat" filemode="755" prefix="${dist}"/> | ||
</zip> | ||
<delete dir="dist/${dist}-src"/> | ||
</target> | ||
<target name="dist-both" depends="create-dist"> | ||
<antcall target="build"/> | ||
<copy todir="dist/${dist}/release"> | ||
<fileset dir="release"/> | ||
</copy> | ||
<chmod file="dist/${dist}/${release}/kmttg" perm="ugo+x"/> | ||
<zip destfile="dist/${dist}.zip"> | ||
<zipfileset dir="dist/${dist}/${release}" filemode="755" includes="**"/> | ||
</zip> | ||
<delete dir="dist/${dist}"/> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.