代码拉取完成,页面将自动刷新
同步操作将从 狮子的魂/jcseg 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?xml version="1.0" encoding="UTF-8"?>
<project name="jcseg" default="usage" basedir=".">
<!--Initialize-->
<target name="init">
<echo message="------------------------------------------------------------"/>
<echo message="----------BUILDING JCSEG PACKAGE----------------------------"/>
<echo message=""/>
<property name="bottom" value="jcseg 2012-2016"/>
<property name="jars" value="${basedir}"/>
<property name="sources" value="${basedir}/src"/>
<property name="classes" value="${basedir}/classes"/>
<property name="version" value="1.9.9"/>
<property name="lib.dir" value="${basedir}/vendors/lib"/>
<property name="api" value="${basedir}/doc"/>
<!--maven modules-->
<property name="mvn.main" value="src/main/java"/>
<property name="mvn.test" value="src/test/java"/>
<property name="core" value="jcseg-core"/>
<property name="analyzer" value="jcseg-analyzer"/>
<property name="elasticsearch" value="jcseg-elasticsearch"/>
<property name="server" value="jcseg-server"/>
<property name="jdk.version" value="1.7"/>
<delete dir="${classes}"/>
<delete dir="${sources}"/>
<delete dir="${api}"/>
<mkdir dir="${sources}"/>
<mkdir dir="${classes}"/>
<mkdir dir="${api}"/>
<!--copy maven sub module sources to the src-->
<echo message="Coping sources of ${core}/${mvn.main} to ${sources}"/>
<copy todir="${sources}">
<fileset dir="${basedir}/${core}/${mvn.main}"/>
</copy>
<echo message="Coping lexicons to ${classes}"/>
<copy todir="${classes}/lexicon">
<fileset dir="${basedir}/vendors/lexicon"/>
</copy>
<echo message="Coping sources of ${analyzer} to ${sources}"/>
<copy todir="${sources}">
<fileset dir="${basedir}/${analyzer}/${mvn.main}"/>
</copy>
<echo message="Coping sources of ${elasticsearch} to ${sources}"/>
<copy todir="${sources}">
<fileset dir="${basedir}/${elasticsearch}/${mvn.main}"/>
</copy>
<echo message="Coping sources of ${server} to ${sources}"/>
<copy todir="${sources}">
<fileset dir="${basedir}/${server}/${mvn.main}"/>
</copy>
<!--specifal resource to copy-->
<copy file="${basedir}/jcseg.properties" todir="${classes}"/>
<copy file="${basedir}/jcseg-server.properties" todir="${classes}"/>
<copy file="${basedir}/${elasticsearch}/src/main/resources/es-plugin.properties" todir="${classes}"/>
<copy todir="${classes}/res">
<fileset dir="${basedir}/${server}/${mvn.main}/res"/>
</copy>
</target>
<!--Build-->
<target name="build" depends="init">
<echo message="-------------Compiling Application--------------"/>
<echo message="${lib.dir}"/>
<javac srcdir="${sources}" destdir="${classes}" source="${jdk.version}" target="${jdk.version}">
<classpath>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
</classpath>
</javac>
</target>
<!--Archive-->
<target name="dist" depends="build">
<jar jarfile="${jars}/jcseg-core-${version}.jar" basedir="${classes}"
includes="org/lionsoul/jcseg/extractor/**/*,org/lionsoul/jcseg/test/**/*,
org/lionsoul/jcseg/tokenizer/**/*,org/lionsoul/jcseg/util/*,jcseg.properties,lexicon/**/*">
<!--manifest information setting-->
<manifest>
<attribute name="Main-Class" value="org.lionsoul.jcseg.test.JcsegTest"/>
<attribute name="Class-Path" value=""/>
</manifest>
</jar>
<jar jarfile="${jars}/jcseg-analyzer-${version}.jar" basedir="${classes}"
includes="org/lionsoul/jcseg/analyzer/**/*"/>
<jar jarfile="${jars}/jcseg-elasticsearch-${version}.jar" basedir="${classes}"
includes="org/lionsoul/jcseg/elasticsearch/**/*,es-plugin.properties"/>
<jar jarfile="${jars}/jcseg-server-${version}.jar" basedir="${classes}"
includes="org/lionsoul/jcseg/server/**/*,org/lionsoul/jcseg/json/**/*,res/**/*,jcseg-server.properties">
<!--manifest information setting-->
<manifest>
<attribute name="Main-Class" value="org.lionsoul.jcseg.server.JcsegServer"/>
<attribute name="Class-Path" value=""/>
</manifest>
</jar>
</target>
<!--Java document-->
<target name="all" depends="dist">
<echo message="------------Making Java Document------------------"/>
<javadoc packagenames="org.*"
sourcepath="${sources}"
destdir="${api}"
bottom="${bottom}"
charset="UTF-8"
author="false">
<classpath>
<pathelement location="${classes}"/>
</classpath>
</javadoc>
<jar jarfile="${jars}/jcseg-${version}-javadoc.jar" basedir="${api}" includes="**/*"></jar>
<!--clean-->
<delete dir="${classes}"/>
<delete dir="${api}"/>
<delete dir="${sources}"/>
</target>
<!--project clean-->
<target name="clean">
<echo message="------------Cleaning project------------------"/>
<!--clean-->
<delete dir="${classes}"/>
<delete dir="${sources}"/>
<delete dir="${api}"/>
<delete>
<fileset dir="${basedir}" includes="*.jar"/>
</delete>
</target>
<target name="usage">
<echo message="*** Jcseg ANT Build Script ***"/>
<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>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。