📄 build.xml
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="MyXML">
<property environment="env"/>
<property name="ECLIPSE_HOME" value="null"/>
<property name="junit.output.dir" value="junit"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.5"/>
<property name="source" value="1.5"/>
<path id="JUnit 3.8.1.libraryclasspath"/>
<path id="MyXML.classpath">
<pathelement location="bin"/>
<path refid="JUnit 3.8.1.libraryclasspath"/>
<pathelement location="F:/Downloads/htmlparser1_6_20060610/htmlparser1_6/lib/filterbuilder.jar"/>
<pathelement location="F:/Downloads/htmlparser1_6_20060610/htmlparser1_6/lib/htmllexer.jar"/>
<pathelement location="F:/Downloads/htmlparser1_6_20060610/htmlparser1_6/lib/htmlparser.jar"/>
<pathelement location="F:/Downloads/htmlparser1_6_20060610/htmlparser1_6/lib/junit.jar"/>
<pathelement location="F:/Downloads/htmlparser1_6_20060610/htmlparser1_6/lib/sax2.jar"/>
<pathelement location="F:/Downloads/htmlparser1_6_20060610/htmlparser1_6/lib/thumbelina.jar"/>
<pathelement location="F:/Downloads/jtidy-04aug2000r7-dev/jtidy-04aug2000r7-dev/build/Tidy.jar"/>
<pathelement location="F:/Downloads/nekohtml-latest/nekohtml-0.9.5/lib/xercesMinimal.jar"/>
<pathelement location="F:/Downloads/nekohtml-latest/nekohtml-0.9.5/nekohtml.jar"/>
<pathelement location="F:/Downloads/nekohtml-latest/nekohtml-0.9.5/nekohtmlSamples.jar"/>
<pathelement location="C:/Program Files/java libs/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src" excludes="**/*.launch, **/*.java"/>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="MyXML.classpath"/>
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
<copy todir="${ant.library.dir}">
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</copy>
<unzip dest="${ant.library.dir}">
<patternset includes="jdtCompilerAdapter.jar"/>
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</unzip>
</target>
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
<antcall target="build"/>
</target>
<target name="DataAccess">
<java classname="webparse.DataAccess" failonerror="true" fork="yes">
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="DataAccessTest">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="webparse.DataAccessTest" todir="${junit.output.dir}"/>
<classpath refid="MyXML.classpath"/>
</junit>
</target>
<target name="MainThread">
<java classname="webparse.MainThread" failonerror="true" fork="yes">
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="ManiXML">
<java classname="webparse.ManiXML" failonerror="true" fork="yes">
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="ParseLink">
<java classname="webparse.ParseLink" failonerror="true" fork="yes">
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="SavePage">
<java classname="webparse.SavePage" failonerror="true" fork="yes">
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="SearchResult">
<java classname="webparse.SearchResult" failonerror="true" fork="yes">
<arg line="-Xms256m -Xmx1000m"/>
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="SearchResultPrepare">
<java classname="webparse.SearchResultPrepare" failonerror="true" fork="yes">
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="SearchResultPrepareData">
<java classname="webparse.SearchResultPrepareData" failonerror="true" fork="yes">
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="Test2">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="webparse.Test2" todir="${junit.output.dir}"/>
<classpath refid="MyXML.classpath"/>
</junit>
</target>
<target name="TestParse">
<java classname="webparse.TestParse" failonerror="true" fork="yes">
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="Util">
<java classname="webparse.Util" failonerror="true" fork="yes">
<classpath refid="MyXML.classpath"/>
</java>
</target>
<target name="junitreport">
<junitreport todir="${junit.output.dir}">
<fileset dir="${junit.output.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${junit.output.dir}"/>
</junitreport>
</target>
</project>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -