manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r952711 - in /incubator/lcf/trunk/modules: ./ connectors/activedirectory/tests/ connectors/filesystem/ connectors/filesystem/tests/ connectors/filesystem/tests/org/ connectors/filesystem/tests/org/apache/ connectors/filesystem/tests/org/apa...
Date Tue, 08 Jun 2010 16:02:23 GMT
Author: kwright
Date: Tue Jun  8 16:02:22 2010
New Revision: 952711

URL: http://svn.apache.org/viewvc?rev=952711&view=rev
Log:
Add connector installation sanity test for file system connector

Added:
    incubator/lcf/trunk/modules/connectors/activedirectory/tests/
    incubator/lcf/trunk/modules/connectors/filesystem/tests/
    incubator/lcf/trunk/modules/connectors/filesystem/tests/org/
    incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/
    incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/
    incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/
    incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/
    incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/
    incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/
    incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/Sanity.java
  (with props)
    incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/TestBase.java
  (with props)
    incubator/lcf/trunk/modules/framework/tests/org/apache/lcf/crawler/tests/TestConnectorBase.java
  (with props)
    incubator/lcf/trunk/modules/lib/junit-4.7.jar   (with props)
    incubator/lcf/trunk/modules/tests/
    incubator/lcf/trunk/modules/tests/build.xml   (with props)
    incubator/lcf/trunk/modules/tests/lib/
    incubator/lcf/trunk/modules/tests/org/
    incubator/lcf/trunk/modules/tests/org/apache/
    incubator/lcf/trunk/modules/tests/org/apache/lcf/
    incubator/lcf/trunk/modules/tests/org/apache/lcf/tests/
    incubator/lcf/trunk/modules/tests/war/
Modified:
    incubator/lcf/trunk/modules/build.xml
    incubator/lcf/trunk/modules/connectors/filesystem/build.xml
    incubator/lcf/trunk/modules/framework/build.xml

Modified: incubator/lcf/trunk/modules/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/build.xml?rev=952711&r1=952710&r2=952711&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/build.xml (original)
+++ incubator/lcf/trunk/modules/build.xml Tue Jun  8 16:02:22 2010
@@ -65,11 +65,13 @@
                 <include name="commons-httpclient-lcf.jar"/>
                 <include name="commons-io*.jar"/>
                 <include name="commons-logging*.jar"/>
+                <include name="derby*.jar"/>
                 <include name="jasper-compiler*.jar"/>
                 <include name="jasper-compiler-jdt*.jar"/>
                 <include name="jasper-runtime.jar*"/>
                 <include name="jdbcpool-0.99.jar"/>
                 <include name="jsp-api*.jar"/>
+                <include name="junit*.jar"/>
                 <include name="log4j*.jar"/>
                 <include name="serializer*.jar"/>
                 <include name="servlet-api*.jar"/>

Modified: incubator/lcf/trunk/modules/connectors/filesystem/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/filesystem/build.xml?rev=952711&r1=952710&r2=952711&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/filesystem/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/filesystem/build.xml Tue Jun  8 16:02:22 2010
@@ -4,6 +4,7 @@
         <delete dir="build"/>
         <delete dir="dist"/>
         <delete dir="doc"/>
+        <delete dir="test-output"/>
     </target>
     
     <target name="doc">
@@ -108,6 +109,33 @@
         <jar destfile="dist/web/war/lcf-filesystemconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all" depends="processes,iar-crawler-ui,doc"/>
+    <target name="compile-tests" depends="compile-connector">
+        <mkdir dir="build/tests/classes"/>
+        <javac srcdir="tests" destdir="build/tests/classes" target="1.5" source="1.5"
debug="true" debuglevel="lines,vars,source">
+            <classpath>
+                 <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset>
+                <pathelement location="build/connector/classes"/>
+            </classpath>
+        </javac>
+    </target>
+    
+    <target name="run-tests" depends="compile-tests">
+        <mkdir dir="test-output"/>
+        <junit fork="true" maxmemory="128m" dir="test-output" showoutput="true">
+            <classpath>
+                <fileset dir="lib">
+                    <include name="*.jar"/>
+                </fileset>
+                <pathelement location="build/connector/classes"/>
+                <pathelement location="build/tests/classes"/>
+            </classpath>
+            <test name="org.apache.lcf.crawler.connectors.filesystem.tests.Sanity" todir="test-output"/>
+            <!-- MHL -->
+        </junit>
+    </target>
+
+    <target name="all" depends="processes,iar-crawler-ui,doc,run-tests"/>
     
 </project>

Added: incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/Sanity.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/Sanity.java?rev=952711&view=auto
==============================================================================
--- incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/Sanity.java
(added)
+++ incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/Sanity.java
Tue Jun  8 16:02:22 2010
@@ -0,0 +1,42 @@
+/* $Id$ */
+
+/**
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.lcf.crawler.connectors.filesystem.tests;
+
+import org.apache.lcf.core.interfaces.*;
+import org.apache.lcf.agents.interfaces.*;
+import org.apache.lcf.crawler.interfaces.*;
+import org.apache.lcf.crawler.system.LCF;
+
+import java.io.*;
+import java.util.*;
+import org.junit.*;
+
+/** This is a very basic sanity check */
+public class Sanity extends TestBase
+{
+  
+  @Test
+  public void sanityCheck()
+    throws Exception
+  {
+    // If we get this far, it must mean that the setup was successful, which is all that
I'm shooting for in this test.
+  }
+  
+
+}

Propchange: incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/Sanity.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/Sanity.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/TestBase.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/TestBase.java?rev=952711&view=auto
==============================================================================
--- incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/TestBase.java
(added)
+++ incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/TestBase.java
Tue Jun  8 16:02:22 2010
@@ -0,0 +1,44 @@
+/* $Id$ */
+
+/**
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.lcf.crawler.connectors.filesystem.tests;
+
+import org.apache.lcf.core.interfaces.*;
+import org.apache.lcf.agents.interfaces.*;
+import org.apache.lcf.crawler.interfaces.*;
+import org.apache.lcf.crawler.system.LCF;
+
+import java.io.*;
+import java.util.*;
+import org.junit.*;
+
+/** This is a testing base class that is responsible for setting up/tearing down the agents
framework. */
+public class TestBase extends org.apache.lcf.crawler.tests.TestConnectorBase
+{
+  
+  protected String getConnectorName()
+  {
+    return "File Connector";
+  }
+  
+  protected String getConnectorClass()
+  {
+    return "org.apache.lcf.crawler.connectors.filesystem.FileConnector";
+  }
+
+}

Propchange: incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/TestBase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/trunk/modules/connectors/filesystem/tests/org/apache/lcf/crawler/connectors/filesystem/tests/TestBase.java
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: incubator/lcf/trunk/modules/framework/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/build.xml?rev=952711&r1=952710&r2=952711&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/build.xml (original)
+++ incubator/lcf/trunk/modules/framework/build.xml Tue Jun  8 16:02:22 2010
@@ -260,6 +260,7 @@
         </copy>
     </target>
 
+    
     <target name="compile-tests" depends="compile-core,compile-ui-core,compile-agents,compile-pull-agent,compile-authority-service">
         <mkdir dir="build/tests/classes"/>
         <javac srcdir="tests" destdir="build/tests/classes" target="1.5" source="1.5"
debug="true" debuglevel="lines,vars,source">
@@ -275,7 +276,21 @@
             </classpath>
         </javac>
     </target>
-    
+
+    <target name="jar-tests" depends="compile-tests">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-tests.jar" basedir="build/tests/classes"/>
+    </target>
+
+    <target name="tests" depends="jar-tests">
+        <mkdir dir="dist/tests/jar"/>
+        <copy todir="dist/tests/jar">
+            <fileset dir="build/jar">
+                <include name="lcf-tests.jar"/>
+            </fileset>
+        </copy>
+    </target>
+
     <target name="run-tests" depends="compile-tests">
         <mkdir dir="test-output"/>
         <junit fork="true" maxmemory="128m" dir="test-output" showoutput="true">
@@ -296,6 +311,6 @@
         </junit>
     </target>
     
-    <target name="all" depends="processes,war-authority-service,war-crawler-ui,doc,run-tests"/>
+    <target name="all" depends="processes,war-authority-service,war-crawler-ui,doc,tests,run-tests"/>
     
 </project>

Added: incubator/lcf/trunk/modules/framework/tests/org/apache/lcf/crawler/tests/TestConnectorBase.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/tests/org/apache/lcf/crawler/tests/TestConnectorBase.java?rev=952711&view=auto
==============================================================================
--- incubator/lcf/trunk/modules/framework/tests/org/apache/lcf/crawler/tests/TestConnectorBase.java
(added)
+++ incubator/lcf/trunk/modules/framework/tests/org/apache/lcf/crawler/tests/TestConnectorBase.java
Tue Jun  8 16:02:22 2010
@@ -0,0 +1,173 @@
+/* $Id$ */
+
+/**
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.lcf.crawler.tests;
+
+import org.apache.lcf.core.interfaces.*;
+import org.apache.lcf.agents.interfaces.*;
+import org.apache.lcf.crawler.interfaces.*;
+import org.apache.lcf.crawler.system.LCF;
+
+import java.io.*;
+import java.util.*;
+import org.junit.*;
+
+/** This is a testing base class that is responsible for setting up/tearing down the agents
framework. */
+public abstract class TestConnectorBase extends org.apache.lcf.crawler.tests.TestBase
+{
+  
+  protected abstract String getConnectorClass();
+  protected abstract String getConnectorName();
+  
+  @Before
+  public void setUp()
+    throws Exception
+  {
+    try
+    {
+      localCleanUp();
+    }
+    catch (Exception e)
+    {
+      System.out.println("Warning: Preclean failed: "+e.getMessage());
+    }
+    localSetUp();
+  }
+
+  protected void localSetUp()
+    throws Exception
+  {
+    String connectorClass = getConnectorClass();
+    String connectorName = getConnectorName();
+    
+    super.localSetUp();
+    
+    // Register the connector we're testing
+    initialize();
+    LCF.initializeEnvironment();
+    IThreadContext tc = ThreadContextFactory.make();
+
+    IDBInterface database = DBInterfaceFactory.make(tc,
+      LCF.getMasterDatabaseName(),
+      LCF.getMasterDatabaseUsername(),
+      LCF.getMasterDatabasePassword());
+    IConnectorManager mgr = ConnectorManagerFactory.make(tc);
+    IJobManager jobManager = JobManagerFactory.make(tc);
+    IRepositoryConnectionManager connManager = RepositoryConnectionManagerFactory.make(tc);
+    // Deregistration should be done in a transaction
+    database.beginTransaction();
+    try
+    {
+      // First, register connector
+      mgr.registerConnector(connectorName,connectorClass);
+      // Then, signal to all jobs that might depend on this connector that they can switch
state
+      // Find the connection names that come with this class
+      String[] connectionNames = connManager.findConnectionsForConnector(connectorClass);
+      // For each connection name, modify the jobs to note that the connector is now installed
+      jobManager.noteConnectorRegistration(connectionNames);
+    }
+    catch (LCFException e)
+    {
+      database.signalRollback();
+      throw e;
+    }
+    catch (Error e)
+    {
+      database.signalRollback();
+      throw e;
+    }
+    finally
+    {
+      database.endTransaction();
+    }
+  }
+  
+  @After
+  public void cleanUp()
+    throws Exception
+  {
+    localCleanUp();
+  }
+
+  protected void localCleanUp()
+    throws Exception
+  {
+    String connectorClass = getConnectorClass();
+    initialize();
+    if (propertiesFile.exists())
+    {
+      // Test the uninstall
+      LCF.initializeEnvironment();
+      IThreadContext tc = ThreadContextFactory.make();
+      
+      Exception currentException = null;
+      try
+      {
+        IDBInterface database = DBInterfaceFactory.make(tc,
+          LCF.getMasterDatabaseName(),
+          LCF.getMasterDatabaseUsername(),
+          LCF.getMasterDatabasePassword());
+        IConnectorManager mgr = ConnectorManagerFactory.make(tc);
+        IJobManager jobManager = JobManagerFactory.make(tc);
+        IRepositoryConnectionManager connManager = RepositoryConnectionManagerFactory.make(tc);
+        // Deregistration should be done in a transaction
+        database.beginTransaction();
+        try
+        {
+          // Find the connection names that come with this class
+          String[] connectionNames = connManager.findConnectionsForConnector(connectorClass);
+          // For each connection name, modify the jobs to note that the connector is no longer
installed
+          jobManager.noteConnectorDeregistration(connectionNames);
+          // Now that all jobs have been placed into an appropriate state, actually do the
deregistration itself.
+          mgr.unregisterConnector(connectorClass);
+        }
+        catch (LCFException e)
+        {
+          database.signalRollback();
+          throw e;
+        }
+        catch (Error e)
+        {
+          database.signalRollback();
+          throw e;
+        }
+        finally
+        {
+          database.endTransaction();
+        }
+      }
+      catch (Exception e)
+      {
+        if (currentException != null)
+          currentException = e;
+      }
+      try
+      {
+        super.localCleanUp();
+      }
+      catch (Exception e)
+      {
+        if (currentException != null)
+          currentException = e;
+      }
+      if (currentException != null)
+        throw currentException;
+    }
+  }
+
+}

Propchange: incubator/lcf/trunk/modules/framework/tests/org/apache/lcf/crawler/tests/TestConnectorBase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/trunk/modules/framework/tests/org/apache/lcf/crawler/tests/TestConnectorBase.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: incubator/lcf/trunk/modules/lib/junit-4.7.jar
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/lib/junit-4.7.jar?rev=952711&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lcf/trunk/modules/lib/junit-4.7.jar
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/lcf/trunk/modules/lib/junit-4.7.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lcf/trunk/modules/tests/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/tests/build.xml?rev=952711&view=auto
==============================================================================
--- incubator/lcf/trunk/modules/tests/build.xml (added)
+++ incubator/lcf/trunk/modules/tests/build.xml Tue Jun  8 16:02:22 2010
@@ -0,0 +1,112 @@
+<project default="all">
+
+    <target name="clean">
+        <delete dir="build"/>
+        <delete dir="results"/>
+    </target>
+
+    <target name="compile-connector">
+        <mkdir dir="build/connector/classes"/>
+        <javac srcdir="connector" destdir="build/connector/classes" target="1.5" source="1.4"
debug="true" debuglevel="lines,vars,source">
+            <classpath>
+                <fileset dir="lib" includes="*.jar"/>
+            </classpath>
+        </javac>
+    </target>
+
+    <target name="compile-crawler-ui" depends="compile-connector">
+        <!-- Unpack the crawler war -->
+        <mkdir dir="build/crawler-ui-war"/>
+        <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-ui-war"/>
+        <!-- Create a copy of everything in the proper environment -->
+        <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-ui-war/WEB-INF/web.xml"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/adminHeaders.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/adminDefaults.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/error.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/checkAdminLogin.jsp"/>
+
+        <copy todir="build/jsp-environment">
+            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/lib">
+            <fileset dir="build/crawler-ui-war/WEB-INF/lib">
+                <include name="*.jar"/>
+            </fileset>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/jsp">
+            <fileset dir="build/crawler-ui-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 web 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-ui-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-ui-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" target="1.5"
source="1.4" debug="true" debuglevel="lines,vars,source">
+            <classpath id="classpath">
+                <pathelement location="${java.home}/../lib/tools.jar"/>
+                <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/standard.jar"/>
+                <pathelement location="build/connector/classes"/>
+            </classpath>
+        </javac>
+    </target>
+    
+    <target name="jar-connector" depends="compile-connector">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-activedirectory-connector.jar" basedir="build/connector/classes"/>
+    </target>
+
+    <target name="webapp-crawler-ui" depends="compile-crawler-ui,jar-connector">
+        <mkdir dir="build/webapp/crawler-ui/WEB-INF/lib"/>
+        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-activedirectory-connector.jar"/>
+        <mkdir dir="build/webapp/crawler-ui"/>
+        <copy todir="build/webapp/crawler-ui">
+            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+    </target>
+
+    <target name="webapp-authority-service" depends="jar-connector">
+        <mkdir dir="build/webapp/authority-service/WEB-INF/lib"/>
+        <copy todir="build/webapp/authority-service/WEB-INF/lib" file="build/jar/lcf-activedirectory-connector.jar"/>
+    </target>
+
+    <target name="iar-crawler-ui" depends="webapp-crawler-ui">
+        <mkdir dir="dist/web/war"/>
+        <jar destfile="dist/web/war/lcf-activedirectoryconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
+    </target>
+
+    <target name="iar-authority-service" depends="webapp-authority-service">
+        <mkdir dir="dist/web/war"/>
+        <jar destfile="dist/web/war/lcf-activedirectoryconnector-authority-service.iar"
basedir="build/webapp/authority-service"/>
+    </target>
+
+    <target name="processes" depends="jar-connector">
+        <mkdir dir="dist/processes/jar"/>
+        <copy todir="dist/processes/jar" file="build/jar/lcf-activedirectory-connector.jar"/>
+    </target>
+
+    <target name="all" depends="processes,iar-crawler-ui,iar-authority-service,doc"/>
+    
+</project>

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



Mime
View raw message