06-29-2013, 09:59 AM
sakson Написал:Такая проблемка.Ребят в самой папки исходников лежат 3 папки
1.CT2.6_Compile -Уже скомпилированная сборка
2.CT2.6_Data -дата пак
3.CT2.6_Source - и как я понел сам сервер
Вот вопрос, в папки "CT2.6_Data(дата пак)" лежит файл build.xml,вроде компилирует все нормально.
А вот в папки CT2.6_Source, файл "build.xml" вообще отсутствует,там просто много папок.Вопрос как спомпилировать сам сервер,папку "CT2.6_Source"? Если отсутствует файл "build.xml"?
Пордон,есть один файл "build.xml" в папки "Javolution" но как я понел,это не само ядро
Вот файл "build.xml" в папки "Javolution":
Код:<!-- ANT BUILD FILE (Ref. http://jakarta.apache.org/ant ) -->
<project name="Javolution" default="no-args" basedir=".">
<description>
Javolution - Java(TM) Solution for Real-Time and Embedded Systems.
</description>
<target name="_init">
<tstamp />
<property name="library" value="javolution" />
<property name="version" value="5.5" />
<property name="release" value="1" />
<property name="jarpath" value="target/${library}-${version}.${release}" />
<property name="javaGenerated" value="target/generated-sources/java" />
<property name="javaSource" value="src/main/java" />
<property name="javadocSource" value="src/main/javadoc" />
<property name="bin" value="target/classes" />
<property name="api" value="target/site/apidocs" />
<property name="debug" value="on" />
<property name="compile.debuglevel" value="source,lines,vars" />
<property name="encoding" value="UTF-8" />
</target>
<target name="clean" depends="_init">
<delete dir="${bin}" />
<delete dir="${api}" />
<delete dir="${javaGenerated}" />
<delete file="${jarpath}.jar" />
<delete file="${jarpath}-src.zip" />
<delete file="${jarpath}-bin.zip" />
</target>
<target name="_init_j2me">
<property name="vm" value="J2ME" />
<property name="source" value="1.3" />
<property name="target" value="1.1" />
<copy todir="${javaGenerated}/j2me">
<fileset dir="${javaSource}/_templates/java" />
</copy>
<copy todir="${javaGenerated}/j2mex">
<fileset dir="${javaSource}/_templates/javax" />
</copy>
<copy todir="${javaGenerated}/javolution" >
<fileset dir="${javaSource}/_templates/javolution" />
</copy>
<replace dir="${javaGenerated}" includes="**/*.java">
<replacetoken><![CDATA[_templates.java]]></replacetoken>
<replacevalue><![CDATA[j2me]]></replacevalue>
</replace>
<replace dir="${javaGenerated}" includes="**/*.java">
<replacetoken><![CDATA[_templates.javolution]]></replacetoken>
<replacevalue><![CDATA[javolution]]></replacevalue>
</replace>
<copy todir="${javaGenerated}/org/xml" filtering="false">
<fileset dir="${javaSource}/org/xml" />
</copy>
</target>
<target name="_init_1.4">
<property name="vm" value="J2SE 1.4+" />
<property name="source" value="1.4" />
<property name="target" value="1.4" />
<filter token="JVM-1.4+" value="*/" />
<copy todir="${javaGenerated}" filtering="true">
<fileset dir="${javaSource}/_templates" />
</copy>
<delete dir="${javaGenerated}/java/" />
<replace dir="${javaGenerated}" includes="**/*.java">
<replacetoken><![CDATA[_templates.]]></replacetoken>
<replacevalue><![CDATA[]]></replacevalue>
</replace>
</target>
<target name="_init_1.5">
<property name="vm" value="J2SE 1.5+" />
<property name="source" value="1.5" />
<property name="target" value="1.5" />
<filter token="JVM-1.4+" value="*/" />
<filter token="JVM-1.5+" value="*/" />
<copy todir="${javaGenerated}" filtering="true">
<fileset dir="${javaSource}/_templates" />
</copy>
<delete dir="${javaGenerated}/java/" />
<replace dir="${javaGenerated}" includes="**/*.java">
<replacetoken><![CDATA[_templates.]]></replacetoken>
<replacevalue><![CDATA[]]></replacevalue>
</replace>
<antcall target="_make_classes_parameterized" />
</target>
<target name="_init_1.6">
<property name="vm" value="J2SE 1.6+" />
<property name="source" value="1.6" />
<property name="target" value="1.6" />
<filter token="JVM-1.4+" value="*/" />
<filter token="JVM-1.5+" value="*/" />
<filter token="JVM-1.6+" value="*/" />
<copy todir="${javaGenerated}" filtering="true">
<fileset dir="${javaSource}/_templates" />
</copy>
<delete dir="${javaGenerated}/java/" />
<replace dir="${javaGenerated}" includes="**/*.java">
<replacetoken><![CDATA[_templates.]]></replacetoken>
<replacevalue><![CDATA[]]></replacevalue>
</replace>
<antcall target="_make_classes_parameterized" />
</target>
<target name="_init_gcj">
<property name="vm" value="GCJ" />
<property name="source" value="1.4" />
<property name="target" value="1.4" />
<filter token="JVM-1.4+" value="*/" />
<copy todir="${javaGenerated}" filtering="true">
<fileset dir="${javaSource}/_templates" />
</copy>
<delete dir="${javaGenerated}/java/" />
<replace dir="${javaGenerated}" includes="**/*.java">
<replacetoken><![CDATA[_templates.]]></replacetoken>
<replacevalue><![CDATA[]]></replacevalue>
</replace>
<copy todir="${javaGenerated}/org/xml" filtering="false">
<fileset dir="${javaSource}/org/xml" />
</copy>
</target>
<target name="_make_classes_parameterized">
<!-- Replace Javolution Enum with Java Enum -->
<replace dir="${javaGenerated}" token="javolution.lang.Enum" value="java.lang.Enum" includes="**/*.java" />
<delete file="${javaGenerated}/javolution/lang/Enum.java" />
<!-- Remove javolution.text.Appendable (replaced by java.lang.Appendable) -->
<delete file="${javaGenerated}/javolution/text/Appendable.java" />
<replace dir="${javaGenerated}/javolution" includes="**/*.java">
<replacetoken><![CDATA[javolution.text.Appendable]]></replacetoken>
<replacevalue><![CDATA[java.lang.Appendable]]></replacevalue>
</replace>
<!-- Return Types (more specialized return type)-->
<replace dir="${javaGenerated}/javolution" includes="**/TextBuilder.java">
<replacetoken><![CDATA[Appendable/*TextBuilder*/]]></replacetoken>
<replacevalue><![CDATA[ TextBuilder ]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/FastSet.java">
<replacetoken><![CDATA[Collection/*Set<E>*/]]></replacetoken>
<replacevalue><![CDATA[ Set<E> ]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/FastTable.java">
<replacetoken><![CDATA[Collection/*List<E>*/]]></replacetoken>
<replacevalue><![CDATA[ List<E> ]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/FastList.java">
<replacetoken><![CDATA[Collection/*List<E>*/]]></replacetoken>
<replacevalue><![CDATA[ List<E> ]]></replacevalue>
</replace>
<!-- In Struct class -->
<replace dir="${javaGenerated}/javolution" includes="**/Struct.java">
<replacetoken><![CDATA[/* <S extends Struct> S*/ Struct]]></replacetoken>
<replacevalue><![CDATA[ <S extends Struct> S ]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/Struct.java">
<replacetoken><![CDATA[/*S*/Struct]]></replacetoken>
<replacevalue><![CDATA[ S ]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/Struct.java">
<replacetoken><![CDATA[/*S*/ Struct]]></replacetoken>
<replacevalue><![CDATA[ S ]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/Struct.java">
<replacetoken><![CDATA[/* <M extends Member> M*/ Member]]></replacetoken>
<replacevalue><![CDATA[ <M extends Member> M ]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/Struct.java">
<replacetoken><![CDATA[/*M*/Member]]></replacetoken>
<replacevalue><![CDATA[ M ]]></replacevalue>
</replace>
<!-- In Generic Collections -->
<replace dir="${javaGenerated}/javolution" includes="**/FastMap.java">
<replacetoken><![CDATA[Record/*Entry<K,V>*/]]></replacetoken>
<replacevalue><![CDATA[Entry<K,V>]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/FastList.java">
<replacetoken><![CDATA[Record/*Node<E>*/]]></replacetoken>
<replacevalue><![CDATA[Node<E>]]></replacevalue>
</replace>
<!-- Types from parameterized class. -->
<replace dir="${javaGenerated}/javolution" includes="**/*.java">
<replacetoken><![CDATA[Object/*{]]></replacetoken>
<replacevalue><![CDATA[ ]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/AllocatorContext.java">
<replacetoken><![CDATA[ValueType/*{]]></replacetoken>
<replacevalue><![CDATA[ ]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/*.java">
<replacetoken><![CDATA[}*/]]></replacetoken>
<replacevalue><![CDATA[ ]]></replacevalue>
</replace>
<!-- Variable length arguments, replace [] with ... -->
<replace dir="${javaGenerated}/javolution" includes="**/*.java">
<replacetoken><![CDATA[[]/*...*/]]></replacetoken>
<replacevalue><![CDATA[...]]></replacevalue>
</replace>
<!-- Parameterized types-->
<replace dir="${javaGenerated}/javolution" includes="**/*.java">
<replacetoken><![CDATA[/*<]]></replacetoken>
<replacevalue><![CDATA[ <]]></replacevalue>
</replace>
<replace dir="${javaGenerated}/javolution" includes="**/*.java">
<replacetoken><![CDATA[>*/]]></replacetoken>
<replacevalue><![CDATA[> ]]></replacevalue>
</replace>
</target>
<target name="_compile" depends="_init">
<mkdir dir="${bin}" />
<!-- Compile everything in java generated directory -->
<javac srcdir="${javaGenerated}" destdir="${bin}" classpath="${bin}" target="${target}" source="${source}" debug="${debug}" debuglevel="${compile.debuglevel}" encoding="${encoding}" />
</target>
<target name="doc" depends="_init">
<!-- Copies javadoc resources to generated classes directory -->
<copy todir="${javaGenerated}" overwrite="true">
<fileset dir="${javadocSource}" />
</copy>
<javadoc sourcepath="${javaGenerated}" classpath="${bin}" packagenames="javolution.*" excludepackagenames="javolution" destdir="${api}" windowtitle="Javolution v${version} API" overview="${javadocSource}/overview.html" author="true" version="true" charset="${encoding}" encoding="${encoding}" docencoding="${encoding}" stylesheetfile="${javadocSource}/stylesheet.css" splitindex="true">
<header>
<![CDATA[<A HREF="http://javolution.org">
<SPAN CLASS="style0">J</SPAN>
<SPAN CLASS="style1">avolution v${version} (${vm})</SPAN>
</A>]]>
</header>
<bottom>
<![CDATA[<i>Copyright © 2005 - 2009 Javolution.</i>]]>
</bottom>
</javadoc>
<java classname="Colapi" classpath="colapi.jar">
<arg value="${basedir}/${api}" />
</java>
</target>
<target name="jar" depends="_init">
<jar jarfile="${jarpath}.jar" basedir="${bin}" update="false">
<manifest>
<attribute name="Main-Class" value="javolution.Javolution" />
<attribute name="Specification-Title" value="Javolution" />
<attribute name="Specification-Version" value="${version} (${vm})" />
<attribute name="Specification-Vendor" value="Javolution" />
<attribute name="Implementation-Title" value="Javolution" />
<attribute name="Implementation-URL" value="http://javolution.org" />
<attribute name="Implementation-Vendor" value="Javolution" />
<attribute name="Implementation-Version" value="${version}.${release} ${TODAY}" />
</manifest>
</jar>
</target>
<target name="_zip" depends="_init">
<zip destfile="${jarpath}-project.zip" update="false">
<zipfileset dir="." prefix="${library}" includes="src/**/*, pom.xml, LICENSE.txt, index.html, css/**/*, build.xml, colapi.jar" />
</zip>
<zip destfile="${jarpath}-bin.zip" update="false">
<zipfileset dir="." prefix="${library}" includes="${jarpath}.jar, pom.xml, LICENSE.txt, index.html, css/**/*, build.xml, colapi.jar, target/site/**/*" />
</zip>
</target>
<target name="j2me" depends="clean, _init_j2me, _compile, doc, jar, _zip" />
<target name="gcj" depends="clean, _init_gcj, _compile, doc, jar, _zip">
<echo>Build shared library ${library}.so</echo>
<exec executable="gcj">
<arg line='-shared -o ${jarpath}.so ${jarpath}.jar' />
</exec>
<echo>Build executable ${library}.exe</echo>
<exec executable="gcj">
<arg line='--main=javolution.Javolution -o ${jarpath}.exe ${jarpath}.jar' />
</exec>
</target>
<target name="1.4" depends="clean, _init_1.4, _compile, doc, jar, _zip" />
<target name="1.5" depends="clean, _init_1.5, _compile, doc, jar, _zip" />
<target name="1.6" depends="clean, _init_1.6, _compile, doc, jar, _zip" />
<target name="no-args">
<echo>Please select one of the following targets:</echo>
<echo> j2me (J2ME CLDC 1.1+)</echo>
<echo> gcj (GNU Compiler for Java - GCC 3.2)</echo>
<echo> 1.4 (J2SE 1.4+)</echo>
<echo> 1.5 (J2SE 1.5+)</echo>
<echo> 1.6 (J2SE 1.6+)</echo>
<echo>(use -Ddebug=off to turn off debug information)</echo>
<fail message="No target specified"/>
</target>
<target name="compile" depends="clean, _init_1.5, _compile, jar, doc" />
<target name="maven" depends="_init, _init_1.5" />
</project>
А зачем вам компилировать javolution? оО
Название сборки хоть скажите.