Skip to content

Commit

Permalink
ant build
Browse files Browse the repository at this point in the history
for gh-6
  • Loading branch information
hrj committed Oct 14, 2015
1 parent a6d6da3 commit 2c12fb8
Show file tree
Hide file tree
Showing 7 changed files with 352 additions and 134 deletions.
48 changes: 48 additions & 0 deletions src/Common/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- 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="Common">
<property environment="env"/>
<property name="XAMJ_Build.location" value="../XAMJ_Build"/>
<property name="HTML_Renderer.location" value="../HTML_Renderer"/>
<property name="Platform_Core.location" value="../Platform_Core"/>
<property name="Primary_Extension.location" value="../Primary_Extension"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<path id="Common.classpath">
<pathelement location="bin"/>
<pathelement location="${XAMJ_Build.location}/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir=".">
<exclude name="**/*.java"/>
</fileset>
</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" includeantruntime="false" source="${source}" target="${target}">
<src path="."/>
<classpath refid="Common.classpath"/>
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects">
<ant antfile="build.xml" dir="${HTML_Renderer.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${HTML_Renderer.location}" inheritAll="false" target="build"/>
<ant antfile="build.xml" dir="${Platform_Core.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${Platform_Core.location}" inheritAll="false" target="build"/>
<ant antfile="build.xml" dir="${Primary_Extension.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${Primary_Extension.location}" inheritAll="false" target="build"/>
</target>
</project>
212 changes: 78 additions & 134 deletions src/HTML_Renderer/build.xml
Original file line number Diff line number Diff line change
@@ -1,138 +1,82 @@
<?xml version="1.0"?>
<!-- ======================================================================
May 29, 2005 1:42:43 PM
Cobra HTML Toolkit Project
Author: J. H. S.
====================================================================== -->
<project name="project" default="default" basedir="/opt/XAMJ_Project">
<property name="cobra.version" value="0.98.5"/>
<property name="cobra.name" value="cobra-${cobra.version}"/>

<description>
Cobra HTML Toolkit
</description>

<target name="default" depends="cobra_zip">
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- 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="HTML_Renderer">
<property environment="env"/>
<property name="XAMJ_Build.location" value="../XAMJ_Build"/>
<property name="Primary_Extension.location" value="../Primary_Extension"/>
<property name="Common.location" value="../Common"/>
<property name="Platform_Public_API.location" value="../Platform_Public_API"/>
<property name="Platform_Core.location" value="../Platform_Core"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<path id="Common.classpath">
<pathelement location="${Common.location}/bin"/>
<pathelement location="${XAMJ_Build.location}/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar"/>
</path>
<path id="Platform_Public_API.classpath">
<pathelement location="${Platform_Public_API.location}/bin"/>
<pathelement location="${XAMJ_Build.location}/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar"/>
</path>
<path id="Platform_Core.classpath">
<pathelement location="${Platform_Core.location}/bin"/>
<pathelement location="${Platform_Core.location}/lib/javatuples-1.2.jar"/>
<path refid="Platform_Public_API.classpath"/>
<path refid="Common.classpath"/>
<pathelement location="${Platform_Core.location}/lib/jooq-3.4.2.jar"/>
<pathelement location="${Platform_Core.location}/lib/public-suffix-list_0.1_28Jun.jar"/>
<pathelement location="${Platform_Core.location}/lib/okhttp-2.5.0.jar"/>
<pathelement location="${Platform_Core.location}/lib/okhttp-urlconnection-2.5.0.jar"/>
<pathelement location="${Platform_Core.location}/lib/okio-1.6.0.jar"/>
<pathelement location="${Platform_Core.location}/lib/h2-1.4.188.jar"/>
<pathelement location="${XAMJ_Build.location}/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar"/>
</path>
<path id="HTML_Renderer.classpath">
<pathelement location="bin"/>
<path refid="Common.classpath"/>
<pathelement location="${XAMJ_Build.location}/ext/js.jar"/>
<pathelement location="${XAMJ_Build.location}/ext/sac.jar"/>
<path refid="Platform_Public_API.classpath"/>
<path refid="Platform_Core.classpath"/>
<pathelement location="${XAMJ_Build.location}/ext/jstyleDomBridge.jar"/>
<pathelement location="${XAMJ_Build.location}/ext/jstyleparser-1.21-SNAPSHOT.jar"/>
<pathelement location="${XAMJ_Build.location}/ext/unbescape-1.1.0.RELEASE.jar"/>
<pathelement location="${XAMJ_Build.location}/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir=".">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>

<target name="cobra_zip" depends="cobra_jar,public_api_doc">
<zip destfile="/tmp/${cobra.name}.zip">
<zipfileset dir="/tmp" includes="cobra.jar" prefix="${cobra.name}/lib"/>
<zipfileset dir="XAMJ_Build/ext" includes="js.jar" prefix="${cobra.name}/lib"/>
<zipfileset dir="HTML_Renderer" includes="COBRA-README.txt" prefix="${cobra.name}"/>
<zipfileset dir="HTML_Renderer" includes="COBRA-ACK.txt" prefix="${cobra.name}"/>
<zipfileset dir="HTML_Renderer" includes="LICENSE.txt" prefix="${cobra.name}"/>
<zipfileset dir="HTML_Renderer" includes="org/**/*.java,org/**/*.xml,org/**/*.html" prefix="${cobra.name}/src"/>
<zipfileset dir="Common" includes="org/**/*.java,org/**/*.xml,org/**/*.html" prefix="${cobra.name}/src"/>
<zipfileset dir="cssparser/src" includes="org/**/*.java,org/**/*.xml,org/**/*.html" prefix="${cobra.name}/src"/>
<zipfileset dir="cssparser/src" includes="com/**/*.java,com/**/*.xml,com/**/*.html" prefix="${cobra.name}/src"/>
<zipfileset dir="/opt/html_xamjwg_org/cobra-api/" includes="**/*.html,**/*.css,**/*.gif" prefix="${cobra.name}/doc/api"/>
<zipfileset dir="HTML_Renderer/docs" includes="**/*.html,**/*.gif" prefix="${cobra.name}/doc"/>
</zip>
</target>

<target name="cobra_jar" depends="cobra_classfiles">
<jar destfile="/tmp/cobra.jar">
<fileset dir="/tmp/cobra-build" includes="**/*.class,**/*.xml,**/*.gif,**/*.png,**/*.jpg"/>
</jar>
<target name="clean">
<delete dir="bin"/>
</target>

<target name="cobra_classfiles">
<mkdir dir="/tmp/cobra-build"/>
<delete>
<fileset dir="/tmp/cobra-build">
<include name="**/*.class"/>
</fileset>
</delete>

<javac srcdir="Common"
destdir="/tmp/cobra-build"
classpath=""
debug="on"
target="1.4"
source="1.4"
/>
<javac srcdir="cssparser/src"
destdir="/tmp/cobra-build"
classpath=""
debug="on"
target="1.4"
source="1.4"
/>
<javac srcdir="HTML_Renderer"
destdir="/tmp/cobra-build"
classpath="/tmp/cobra-build:XAMJ_Build/ext/js.jar"
debug="on"
target="1.4"
source="1.4"
/>
<target depends="clean" name="cleanall">
<ant antfile="build.xml" dir="${Common.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${Platform_Public_API.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${Platform_Core.location}" inheritAll="false" target="clean"/>
</target>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects">
<ant antfile="build.xml" dir="${Common.location}" inheritAll="false" target="build-project"/>
<ant antfile="build.xml" dir="${Platform_Public_API.location}" inheritAll="false" target="build-project"/>
<ant antfile="build.xml" dir="${Platform_Core.location}" inheritAll="false" target="build-project"/>
</target>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
<src path="."/>
<classpath refid="HTML_Renderer.classpath"/>
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects">
<ant antfile="build.xml" dir="${Primary_Extension.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${Primary_Extension.location}" inheritAll="false" target="build"/>
</target>

<target name="public_api_doc">
<javadoc
classpath="XAMJ_Build/ext/js.jar:/tmp/cobra-build"
sourcepath="HTML_Renderer"
packagenames="org.lobobrowser.html,org.lobobrowser.html.parser,org.lobobrowser.html.gui,org.lobobrowser.html.test,org.lobobrowser.html.renderer,,org.lobobrowser.html.domimpl"
destdir="/opt/html_xamjwg_org/cobra-api/"
author="false"
version="true"
use="true"
nohelp="true"
windowTitle="Cobra ${cobra.version} - Java HTML Toolkit - API Documentation">

<doctitle><![CDATA[
<!-- google_ad_section_start(weight=ignore) -->
<h1>Cobra API Documentation</h1>
<script type='text/javascript'><!--
document.iSkipCornerAd = true;
google_ad_client = 'pub-9179280249786862';
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = '728x90_as';
google_ad_type = 'text_image';
//2007-10-31: Cobra JavaDoc Top
google_ad_channel = '3219947991';
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
<!-- google_ad_section_end -->
]]>
</doctitle>

<bottom><![CDATA[
<a href='http://sourceforge.net' target='_top'><img align='right' hspace='4' src='http://sourceforge.net/sflogo.php?group_id=139023&amp;type=4' width='125' height='37' border='0' alt='SourceForge.net Logo'/></a><i>Copyright &#169; 2005-2009 The Lobo Project. All Rights Reserved.</i><br>[<a href='http://lobobrowser.org/cobra.jsp' target='_top'>Cobra Project Home</a>]
<div id='adbox' style='position: absolute; top: 6.0em; right: 8px; display: none; background: white; border: #100030 solid 2px; padding: 4px; background-color: #FFFF90'>
<!-- adsense start -->
<form action="http://lobobrowser.org/api-searchresults.jsp" id="cse-search-box" target="_top">
<div>
<input type="hidden" name="cx" value="partner-pub-9179280249786862:aa7aazd6e58" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="10" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
<!-- adsense end -->
</div>
<script><!--
if(!document.iSkipCornerAd) {
var iAdBox = document.getElementById('adbox');
iAdBox.style.display = 'block';
}
//-->
</script>
]]>
</bottom>
<tag name="todo" scope="all" description="TO DO:"/>
<link offline="true" href="http://java.sun.com/products/j2se/1.5/docs/api/" packagelistLoc="C:\program files\java\jre1.5.0_01\docs\api\"/>
</javadoc>
</target>

</project>

79 changes: 79 additions & 0 deletions src/Platform_Core/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- 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="Platform_Core">
<property environment="env"/>
<property name="XAMJ_Build.location" value="../XAMJ_Build"/>
<property name="HTML_Renderer.location" value="../HTML_Renderer"/>
<property name="Primary_Extension.location" value="../Primary_Extension"/>
<property name="Common.location" value="../Common"/>
<property name="Platform_Public_API.location" value="../Platform_Public_API"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<path id="Platform_Public_API.classpath">
<pathelement location="${Platform_Public_API.location}/bin"/>
<pathelement location="${XAMJ_Build.location}/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar"/>
</path>
<path id="Common.classpath">
<pathelement location="${Common.location}/bin"/>
<pathelement location="${XAMJ_Build.location}/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar"/>
</path>
<path id="Platform_Core.classpath">
<pathelement location="bin"/>
<pathelement location="lib/javatuples-1.2.jar"/>
<path refid="Platform_Public_API.classpath"/>
<path refid="Common.classpath"/>
<pathelement location="lib/jooq-3.4.2.jar"/>
<pathelement location="lib/public-suffix-list_0.1_28Jun.jar"/>
<pathelement location="lib/okhttp-2.5.0.jar"/>
<pathelement location="lib/okhttp-urlconnection-2.5.0.jar"/>
<pathelement location="lib/okio-1.6.0.jar"/>
<pathelement location="lib/h2-1.4.188.jar"/>
<pathelement location="${XAMJ_Build.location}/org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir=".">
<exclude name="**/*.java"/>
<exclude name="lib/*"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall">
<ant antfile="build.xml" dir="${Common.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${Platform_Public_API.location}" inheritAll="false" target="clean"/>
</target>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects">
<ant antfile="build.xml" dir="${Common.location}" inheritAll="false" target="build-project"/>
<ant antfile="build.xml" dir="${Platform_Public_API.location}" inheritAll="false" target="build-project"/>
</target>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
<src path="."/>
<exclude name="lib/*"/>
<classpath refid="Platform_Core.classpath"/>
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects">
<ant antfile="build.xml" dir="${HTML_Renderer.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${HTML_Renderer.location}" inheritAll="false" target="build"/>
<ant antfile="build.xml" dir="${Primary_Extension.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${Primary_Extension.location}" inheritAll="false" target="build"/>
</target>
<target name="EntryPoint">
<java classname="org.lobobrowser.main.EntryPoint" failonerror="true" fork="yes">
<jvmarg line="-Dext.dirs=../XAMJ_Build/ext -Dext.files=../HTML_Renderer/bin,../Primary_Extension/bin -Djava.security.debugxx=accesss,failure -Djava.security.debugxx=access,domain,stack"/>
<arg line="-debug"/>
<classpath refid="Platform_Core.classpath"/>
</java>
</target>
</project>
Loading

0 comments on commit 2c12fb8

Please sign in to comment.