代码拉取完成,页面将自动刷新
同步操作将从 狮子的魂/jteach 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?xml version="1.0" encoding="UTF-8"?>
<project name="jteach" default="usage" basedir=".">
<property name="bottom" value="jteach 2010-2021"/>
<property name="jars" value="${basedir}"/>
<property name="sources" value="${basedir}/src"/>
<property name="classes" value="${basedir}/classes"/>
<property name="lib.dir" value="lib"/>
<property name="version" value="1.3.8"/>
<property name="api" value="${basedir}/doc"/>
<property name="resource" value="res"/>
<delete dir="${classes}"/>
<mkdir dir="${classes}"/>
<mkdir dir="${api}"/>
<mkdir dir="${classes}/${resource}"/>
<!-- class path define -->
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
</path>
<pathconvert property="quote.classpath" pathsep=" ">
<mapper>
<chainedmapper>
<flattenmapper />
<globmapper from="*" to="lib/*" />
</chainedmapper>
</mapper>
<path refid="classpath" />
</pathconvert>
<!--build-->
<target name="build" description="Compile main source java files">
<javac destdir="${classes}" includes="**/*" encoding="utf-8" includeantruntime="false">
<src path="${sources}"/>
<classpath refid="classpath"/>
</javac>
<!--copy the resource image-->
<copy todir="${classes}/${resource}">
<fileset dir="${sources}/${resource}"/>
</copy>
</target>
<!--Archive-->
<target name="dist" depends="build" description="Compress the java class files to jar">
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<delete>
<fileset dir="${jars}" includes="*.jar"/>
</delete>
<jar jarfile="${jars}/jteach-server-${version}.jar" basedir="${classes}">
<include name="**/*"/>
<exclude name="org/lionsoul/jteach/client/**/*"/>
<manifest>
<attribute name="Built-By" value="Lion" />
<attribute name="Implementation-Version" value="${version}" />
<attribute name="Built-Date" value="${TODAY}" />
<attribute name="Main-Class" value="org.lionsoul.jteach.server.JServer"/>
<attribute name="Class-Path" value="${quote.classpath}"/>
</manifest>
</jar>
<jar jarfile="${jars}/jteach-client-${version}.jar" basedir="${classes}">
<include name="**/*"/>
<exclude name="org/lionsoul/jteach/server/**/*"/>
<manifest>
<attribute name="Built-By" value="Lion" />
<attribute name="Implementation-Version" value="${version}" />
<attribute name="Built-Date" value="${TODAY}" />
<attribute name="Main-Class" value="org.lionsoul.jteach.client.JClient"/>
<attribute name="Class-Path" value=""/>
</manifest>
</jar>
</target>
<!--Java Document-->
<target name="all" depends="dist">
<javadoc packagenames="org.lionsoul.jteach.*" sourcepath="${sources}"
destdir="${api}" bottom="${bottom}" charset="UTF-8" author="true">
<classpath>
<pathelement location="${classes}"/>
</classpath>
</javadoc>
</target>
<target name="usage">
<echo message="Usage: "/>
<echo message=" ant [target]"/>
<echo message=""/>
<echo message=" target : "/>
<echo message=" build : Build Application"/>
<echo message=" dist : Build Application + Archive (JAR)"/>
<echo message=" all : Build Application + Archive + JavaDoc"/>
</target>
</project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。