incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r909923 - in /incubator/lcf/trunk/modules/connectors/filesystem: build.xml com/ connector/ connector/com/ connectors/ crawler-ui/ crawler-ui/connectors/ lib/ war/
Date Sat, 13 Feb 2010 21:59:20 GMT
Author: kwright
Date: Sat Feb 13 21:59:20 2010
New Revision: 909923

URL: http://svn.apache.org/viewvc?rev=909923&view=rev
Log:
Reorganize connector into 'standard form', and add build.xml ant script.

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

Added: incubator/lcf/trunk/modules/connectors/filesystem/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/filesystem/build.xml?rev=909923&view=auto
==============================================================================
--- incubator/lcf/trunk/modules/connectors/filesystem/build.xml (added)
+++ incubator/lcf/trunk/modules/connectors/filesystem/build.xml Sat Feb 13 21:59:20 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:lib/lcf-pull-agent.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/connectors/filesystem"/>
+        <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/connectors/filesystem" file="crawler-ui/connectors/filesystem/headerconfig.jsp"/>
+        <copy todir="build/jsp-environment/connectors/filesystem" file="crawler-ui/connectors/filesystem/editconfig.jsp"/>
+        <copy todir="build/jsp-environment/connectors/filesystem" file="crawler-ui/connectors/filesystem/postconfig.jsp"/>
+        <copy todir="build/jsp-environment/connectors/filesystem" file="crawler-ui/connectors/filesystem/viewconfig.jsp"/>
+        <copy todir="build/jsp-environment/connectors/filesystem" file="crawler-ui/connectors/filesystem/headerspec.jsp"/>
+        <copy todir="build/jsp-environment/connectors/filesystem" file="crawler-ui/connectors/filesystem/editspec.jsp"/>
+        <copy todir="build/jsp-environment/connectors/filesystem" file="crawler-ui/connectors/filesystem/postspec.jsp"/>
+        <copy todir="build/jsp-environment/connectors/filesystem" file="crawler-ui/connectors/filesystem/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-filesystem-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-filesystem-connector.jar"/>
+        <mkdir dir="build/webapp/crawler-ui/connectors/filesystem"/>
+        <copy todir="build/webapp/crawler-ui/connectors/filesystem">
+            <fileset dir="crawler-ui/connectors/filesystem">
+                <include name="*.jsp"/>
+            </fileset>
+        </copy>
+    </target>
+    
+    <target name="iar-connector-ui">
+        <mkdir dir="build/iar"/>
+        <jar destfile="build/iar/lcf-filesystemconnector-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/filesystem/build.xml
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message