incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r909944 - in /incubator/lcf/trunk/modules/connectors/gts: build.xml com/ connector/ connector/com/ crawler-ui/ crawler-ui/output/ lib/ output/ war/
Date Sun, 14 Feb 2010 01:04:31 GMT
Author: kwright
Date: Sun Feb 14 01:04:31 2010
New Revision: 909944

URL: http://svn.apache.org/viewvc?rev=909944&view=rev
Log:
Reorganize GTS connector, and add a build.xml ant script.

Added:
    incubator/lcf/trunk/modules/connectors/gts/build.xml   (with props)
    incubator/lcf/trunk/modules/connectors/gts/connector/
    incubator/lcf/trunk/modules/connectors/gts/connector/com/
      - copied from r909915, incubator/lcf/trunk/modules/connectors/gts/com/
    incubator/lcf/trunk/modules/connectors/gts/crawler-ui/
    incubator/lcf/trunk/modules/connectors/gts/crawler-ui/output/
      - copied from r909915, incubator/lcf/trunk/modules/connectors/gts/output/
    incubator/lcf/trunk/modules/connectors/gts/lib/
    incubator/lcf/trunk/modules/connectors/gts/war/
Removed:
    incubator/lcf/trunk/modules/connectors/gts/com/
    incubator/lcf/trunk/modules/connectors/gts/output/

Added: incubator/lcf/trunk/modules/connectors/gts/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/gts/build.xml?rev=909944&view=auto
==============================================================================
--- incubator/lcf/trunk/modules/connectors/gts/build.xml (added)
+++ incubator/lcf/trunk/modules/connectors/gts/build.xml Sun Feb 14 01:04:31 2010
@@ -0,0 +1,111 @@
+<project>
+
+    <target name="clean">
+        <delete dir="build"/>
+    </target>
+    
+    <target name="compile-connector">
+        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar"/>
+        <mkdir dir="build/connector/classes"/>
+        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}"/>
+    </target>
+
+    <target name="compile-crawler-ui">
+        <!-- Unpack the crawler war -->
+        <mkdir dir="build/crawler-war"/>
+        <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-war"/>
+        <!-- Create a copy of everything in the proper environment -->
+        <mkdir dir="build/jsp-environment/output/gts"/>
+        <mkdir dir="build/jsp-environment/WEB-INF/lib"/>
+        <mkdir dir="build/jsp-environment/WEB-INF/jsp"/>
+        <copy todir="build/jsp-environment/WEB-INF" file="build/crawler-war/WEB-INF/web.xml"/>
+        <copy todir="build/jsp-environment" file="build/crawler-war/adminHeaders.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-war/adminDefaults.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-war/error.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-war/checkAdminLogin.jsp"/>
+
+        <copy todir="build/jsp-environment/output/gts" file="crawler-ui/output/gts/headerconfig.jsp"/>
+        <copy todir="build/jsp-environment/output/gts" file="crawler-ui/output/gts/editconfig.jsp"/>
+        <copy todir="build/jsp-environment/output/gts" file="crawler-ui/output/gts/postconfig.jsp"/>
+        <copy todir="build/jsp-environment/output/gts" file="crawler-ui/output/gts/viewconfig.jsp"/>
+        <copy todir="build/jsp-environment/output/gts" file="crawler-ui/output/gts/headerspec.jsp"/>
+        <copy todir="build/jsp-environment/output/gts" file="crawler-ui/output/gts/editspec.jsp"/>
+        <copy todir="build/jsp-environment/output/gts" file="crawler-ui/output/gts/postspec.jsp"/>
+        <copy todir="build/jsp-environment/output/gts" file="crawler-ui/output/gts/viewspec.jsp"/>
+        <copy todir="build/jsp-environment/WEB-INF/lib">
+            <fileset dir="build/crawler-war/WEB-INF/lib">
+                <include name="*.jar"/>
+            </fileset>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/jsp">
+            <fileset dir="build/crawler-war/WEB-INF/jsp">
+                <include name="*.tld"/>
+            </fileset>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/classes">
+            <fileset dir="build/connector/classes"/>
+        </copy>
+        <!-- Compile to java, as a check -->
+        <mkdir dir="build/crawler-ui/java"/>
+        <!-- Define the jsp compilation task using tomcat libraries -->
+        <taskdef classname="org.apache.jasper.JspC" name="jasper2" > 
+            <classpath id="jspc.classpath"> 
+                <pathelement location="${java.home}/../lib/tools.jar"/>
+                <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset> 
+                <pathelement location="build/crawler-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-war/WEB-INF/lib/standard.jar"/>
+                <pathelement location="build/connector/classes"/>
+            </classpath> 
+        </taskdef> 
+        <jasper2 validateXml="false" uriroot="build/jsp-environment" webXmlFragment="build/jsp-environment/WEB-INF/web-generated.xml"
outputDir="build/crawler-ui/java" /> 
+        <!-- Compile java classes -->
+        <mkdir dir="build/crawler-ui/classes"/>
+        <javac srcdir="build/crawler-ui/java" destdir="build/crawler-ui/classes">
+            <classpath id="classpath">
+                <pathelement location="${java.home}/../lib/tools.jar"/>
+                <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset>
+                <pathelement location="build/crawler-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-war/WEB-INF/lib/standard.jar"/>
+                <pathelement location="build/connector/classes"/>
+            </classpath>
+        </javac>
+    </target>
+    
+    <target name="compile">
+        <antcall target="compile-connector"/>
+        <antcall target="compile-crawler-ui"/>
+    </target>
+    
+    <target name="jar-connector">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-gts-connector.jar" basedir="build/connector/classes"/>
+    </target>
+
+    <target name="webapp-connector-ui">
+        <mkdir dir="build/webapp/crawler-ui/WEB-INF/lib"/>
+        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-gts-connector.jar"/>
+        <mkdir dir="build/webapp/crawler-ui/output/gts"/>
+        <copy todir="build/webapp/crawler-ui/output/gts">
+            <fileset dir="crawler-ui/output/gts">
+                <include name="*.jsp"/>
+            </fileset>
+        </copy>
+    </target>
+    
+    <target name="iar-connector-ui">
+        <mkdir dir="build/iar"/>
+        <jar destfile="build/iar/lcf-gtsconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
+    </target>
+
+    <target name="all">
+        <antcall target="compile"/>
+        <antcall target="jar-connector"/>
+        <antcall target="webapp-connector-ui"/>
+        <antcall target="iar-connector-ui"/>
+    </target>
+    
+</project>

Propchange: incubator/lcf/trunk/modules/connectors/gts/build.xml
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message