incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piergior...@apache.org
Subject svn commit: r1203860 [2/4] - in /incubator/lcf/branches/CONNECTORS-287: ./ connectors/alfresco/ connectors/alfresco/connector/ connectors/alfresco/connector/src/ connectors/alfresco/connector/src/main/ connectors/alfresco/connector/src/main/java/ conne...
Date Fri, 18 Nov 2011 21:42:11 GMT
Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/NodeUtils.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/NodeUtils.java?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/NodeUtils.java (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/NodeUtils.java Fri Nov 18 21:42:08 2011
@@ -0,0 +1,61 @@
+package org.apache.manifoldcf.crawler.connectors.alfresco;
+
+import java.rmi.RemoteException;
+
+import org.alfresco.webservice.repository.RepositoryFault;
+import org.alfresco.webservice.types.NamedValue;
+import org.alfresco.webservice.types.Node;
+import org.alfresco.webservice.types.Predicate;
+import org.alfresco.webservice.util.AuthenticationDetails;
+import org.alfresco.webservice.util.AuthenticationUtils;
+import org.alfresco.webservice.util.WebServiceFactory;
+import org.apache.commons.lang.StringUtils;
+import org.apache.manifoldcf.crawler.system.Logging;
+
+public class NodeUtils {
+
+  public static Node get(String username, String password, AuthenticationDetails session, Predicate predicate){
+    Node[] resultNodes = null;
+    try {
+      AuthenticationUtils.startSession(username, password);
+      session = AuthenticationUtils.getAuthenticationDetails();
+      resultNodes = WebServiceFactory.getRepositoryService().get(predicate);
+    } catch (RepositoryFault e) {
+      Logging.connectors.error(
+          "Alfresco: RepositoryFault during getting a node in processDocuments. Node: "
+              + predicate.getNodes()[0].getPath() + ". " + e.getMessage(), e);
+    } catch (RemoteException e) {
+      Logging.connectors
+          .error(
+              "Alfresco: Remote exception error during getting a node in processDocuments. Node: "
+                  + predicate.getNodes()[0].getPath() + ". " + e.getMessage(), e);
+    } finally {
+      AuthenticationUtils.endSession();
+      session = null;
+    }
+    if(resultNodes!=null && resultNodes.length>0){
+      return resultNodes[0];
+    } else {
+      return null;
+    }
+  }
+  
+  public static boolean isVersioned(String[] aspects){
+    for (String aspect : aspects) {
+      if(Constants.ASPECT_VERSIONABLE.equals(aspect)){
+        return true;
+      }
+    }
+    return false;
+  }
+  
+  public static String getVersionLabel(NamedValue[] properties){
+    for (NamedValue property : properties) {
+      if(property.getName().equals(Constants.PROP_VERSION_LABEL)){
+        return property.getValue();
+      }
+    }
+    return StringUtils.EMPTY;
+  }
+  
+}

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/NodeUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/NodeUtils.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/NodeUtils.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/PropertiesUtils.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/PropertiesUtils.java?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/PropertiesUtils.java (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/PropertiesUtils.java Fri Nov 18 21:42:08 2011
@@ -0,0 +1,70 @@
+package org.apache.manifoldcf.crawler.connectors.alfresco;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.alfresco.webservice.types.NamedValue;
+import org.apache.commons.lang.StringUtils;
+import org.apache.manifoldcf.agents.interfaces.RepositoryDocument;
+import org.apache.manifoldcf.core.interfaces.ManifoldCFException;
+
+public class PropertiesUtils {
+
+  private static final String PROP_CONTENT_PREFIX = "contentUrl";
+  
+  public static String[] getPropertyValues(NamedValue[]  properties, String qname){
+    String[] propertyValues = null;
+    for(NamedValue property : properties){
+      if(property.getName().endsWith(qname)){
+        if(property.getIsMultiValue()){
+          propertyValues = property.getValues();
+        } else {
+          propertyValues = new String[]{property.getValue()};
+        }
+      }
+    }
+    return propertyValues;
+  }
+  
+  public static void ingestProperties(RepositoryDocument rd, NamedValue[] properties) throws ManifoldCFException{
+    for(NamedValue property : properties){
+      if(property.getIsMultiValue()){
+        String[] values = property.getValues();
+        if(values!=null){
+          for (String value : values) {
+            rd.addField(property.getName(), value);
+          }
+        }
+      } else {
+        rd.addField(property.getName(), property.getValue());
+      }
+    }
+  }
+  
+  /**
+   * 
+   * @param properties
+   * @return a list of binary properties for the current node
+   */
+  public static List<NamedValue> getContentProperties(NamedValue[] properties){
+    List<NamedValue> contentProperties = new ArrayList<NamedValue>();
+    if(properties!=null){
+      for (NamedValue property : properties) {
+        if(property!=null){
+          if(property.getIsMultiValue()!=null){
+            if(!property.getIsMultiValue()){
+              if(StringUtils.isNotEmpty(property.getValue())){
+                if(property.getValue().startsWith(PROP_CONTENT_PREFIX)){
+                    contentProperties.add(property);
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+    return contentProperties;
+    
+  }
+  
+}

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/PropertiesUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/PropertiesUtils.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/PropertiesUtils.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/SearchUtils.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/SearchUtils.java?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/SearchUtils.java (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/SearchUtils.java Fri Nov 18 21:42:08 2011
@@ -0,0 +1,117 @@
+package org.apache.manifoldcf.crawler.connectors.alfresco;
+
+import java.rmi.RemoteException;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.alfresco.webservice.repository.QueryResult;
+import org.alfresco.webservice.repository.RepositoryFault;
+import org.alfresco.webservice.types.NamedValue;
+import org.alfresco.webservice.types.Query;
+import org.alfresco.webservice.types.Reference;
+import org.alfresco.webservice.types.ResultSet;
+import org.alfresco.webservice.types.ResultSetRow;
+import org.alfresco.webservice.types.Store;
+import org.alfresco.webservice.util.AuthenticationDetails;
+import org.alfresco.webservice.util.AuthenticationUtils;
+import org.alfresco.webservice.util.Constants;
+import org.alfresco.webservice.util.WebServiceFactory;
+import org.apache.commons.lang.StringUtils;
+import org.apache.manifoldcf.crawler.system.Logging;
+
+public class SearchUtils {
+  
+  private static final String SPACES_STORE = "SpacesStore";
+  private static final String XPATH_COMPANY_HOME = "/app:company_home";
+
+  public static final Store STORE = new Store(Constants.WORKSPACE_STORE,
+      SPACES_STORE);
+  
+  private static final String PATH_PROPERTY = "{http://www.alfresco.org/model/content/1.0}path";
+  
+  private static final String[] EXCLUDED_PATHS = new String[]{
+    "{http://www.alfresco.org/model/application/1.0}dictionary",
+    "{http://www.alfresco.org/model/application/1.0}guest_home",
+    "{http://www.alfresco.org/model/application/1.0}user_homes",
+    "{http://www.alfresco.org/model/site/1.0}sites"};
+  
+
+  public static QueryResult luceneSearch(String username, String password, AuthenticationDetails session, String luceneQuery){
+    QueryResult queryResult = null;
+    Query query = new Query(Constants.QUERY_LANG_LUCENE, luceneQuery);
+    try {
+      AuthenticationUtils.startSession(username, password);
+      session = AuthenticationUtils.getAuthenticationDetails();
+      queryResult = WebServiceFactory.getRepositoryService().query(STORE, query, false);
+    } catch (RepositoryFault e) {
+      Logging.connectors.error(
+          "Alfresco: Repository fault during addSeedDocuments: "
+              + e.getMessage(), e);
+    } catch (RemoteException e) {
+      Logging.connectors.error(
+          "Alfresco: Remote exception during addSeedDocuments: "
+              + e.getMessage(), e);
+    } finally{
+      AuthenticationUtils.endSession();
+    }
+    return queryResult;
+  }
+  
+  public static QueryResult getChildren(String username, String password, AuthenticationDetails session, Reference reference){
+    QueryResult queryResult = null;
+    try {
+      AuthenticationUtils.startSession(username, password);
+      session = AuthenticationUtils.getAuthenticationDetails();
+      queryResult = WebServiceFactory.getRepositoryService().queryChildren(reference);
+    } catch (RepositoryFault e) {
+      Logging.connectors.error(
+          "Alfresco: RepositoryFault during getting a node in processDocuments. Node: "
+              + reference.getPath() + ". " + e.getMessage(), e);
+    } catch (RemoteException e) {
+      Logging.connectors
+          .error(
+              "Alfresco: Remote exception error during getting a node in processDocuments. Node: "
+                  + reference.getPath() + ". " + e.getMessage(), e);
+    } finally {
+      AuthenticationUtils.endSession();
+      session = null;
+    }
+    return queryResult;
+  }
+  
+  /**
+   * 
+   * @param username
+   * @param password
+   * @param session
+   * @return filtered children of the Company Home without all the special spaces
+   */
+  public static QueryResult getChildrenFromCompanyHome(String username, String password, AuthenticationDetails session){
+    Reference companyHome = new Reference(STORE, null, XPATH_COMPANY_HOME);
+    QueryResult queryResult = SearchUtils.getChildren(username,password,session,companyHome);
+    ResultSet rs = queryResult.getResultSet();
+    ResultSetRow[] rows = rs.getRows();
+    List<ResultSetRow> filteredRows = new ArrayList<ResultSetRow>();
+    for (ResultSetRow row : rows) {
+      boolean hasFilteredPath = false;
+      NamedValue[] properties = row.getColumns();
+      String path = PropertiesUtils.getPropertyValues(properties, PATH_PROPERTY)[0];
+      for(String excludedPath : EXCLUDED_PATHS){
+        if(StringUtils.contains(path, excludedPath)){
+          hasFilteredPath = true;
+          break;
+        }
+      }
+      if(!hasFilteredPath){
+        filteredRows.add(row);
+      }
+    }
+    ResultSetRow[] finalFilteredRows = new ResultSetRow[filteredRows.size()];
+    for(int i=0; i<finalFilteredRows.length; i++){
+      finalFilteredRows[i] = filteredRows.get(i);
+    }
+    rs.setRows(finalFilteredRows);
+    return queryResult;
+  }
+  
+}

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/SearchUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/SearchUtils.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/SearchUtils.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html Fri Nov 18 21:42:08 2011
@@ -0,0 +1,58 @@
+<!--
+ 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.
+-->
+
+<table class="displaytable">
+	<tr>
+		<td class="separator" colspan="2">
+			<hr />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>
+				Username:
+			</nobr>
+		</td>
+		<td class="value">
+			<input type="text" name="username" value="${USERNAME}" />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>
+				Password:
+			</nobr>
+		</td>
+		<td class="value">
+			<input type="password" name="password" value="${PASSWORD}" />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>
+				Endpoint:
+			</nobr>
+		</td>
+		<td class="value">
+			<input type="text" name="endpoint" value="${ENDPOINT}" size="50" />
+		</td>
+	</tr>
+</table>
+
+<script type="text/javascript">
+
+</script>
\ No newline at end of file

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js Fri Nov 18 21:42:08 2011
@@ -0,0 +1,67 @@
+<!--
+ 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.
+-->
+
+<script type="text/javascript">
+<!--
+function checkConfig()
+{
+  if (editconnection.username.value == "")
+  {
+    alert("The username must be not null");
+    editconnection.username.focus();
+    return false;
+  }
+  if (editconnection.password.value == "")
+  {
+    alert("The password must be not null");
+    editconnection.password.focus();
+    return false;
+  }
+  if (editconnection.endpoint.value == "")
+  {
+    alert("The endpoint must be not null");
+    editconnection.endpoint.focus();
+    return false;
+  }
+  
+  return true;
+}
+ 
+function checkConfigForSave()
+{
+  if (editconnection.username.value == "")
+  {
+    alert("The username must be not null");
+    editconnection.username.focus();
+    return false;
+  }
+  if (editconnection.password.value == "")
+  {
+    alert("The password must be not null");
+    editconnection.password.focus();
+    return false;
+  }
+  if (editconnection.endpoint.value == "")
+  {
+    alert("The endpoint must be not null");
+    editconnection.endpoint.focus();
+    return false;
+  }
+  return true;
+}
+-->
+</script>
\ No newline at end of file

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html Fri Nov 18 21:42:08 2011
@@ -0,0 +1,36 @@
+<!--
+ 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.
+-->
+
+<table class="displaytable">
+	<tr>
+		<td class="separator" colspan="3">
+			<hr />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>
+				Lucene Query:
+			</nobr>
+		</td>
+		<td class="value">
+			<nobr>
+				<input type="text" size="120" name="luceneQuery" value="${LUCENEQUERY}" />
+			</nobr>
+		</td>
+	</tr>
+</table>

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.js
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.js?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.js (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.js Fri Nov 18 21:42:08 2011
@@ -0,0 +1,32 @@
+<!--
+ 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.
+-->
+
+<script type="text/javascript">
+<!--
+function checkSpecification()
+{
+  // Does nothing right now.
+  return true;
+}
+ 
+function SpecOp(n, opValue, anchorvalue)
+{
+  eval("editjob."+n+".value = \""+opValue+"\"");
+  postFormSetAnchor(anchorvalue);
+}
+-->
+</script>
\ No newline at end of file

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/editSpecification.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html Fri Nov 18 21:42:08 2011
@@ -0,0 +1,43 @@
+<!--
+ 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.
+-->
+
+<table class="displaytable">
+	<tr>
+		<td class="description" colspan="1">
+			<nobr>
+				Parameters:
+			</nobr>
+		</td>
+		<td class="value" colspan="3">
+			<nobr>
+				username=${USERNAME}
+			</nobr>
+			<br />
+      <nobr>
+        password=********
+      </nobr>
+			<br />
+			<nobr>
+				endpoint=${ENDPOINT}
+			</nobr>
+      <br />
+		</td>
+	</tr>
+</table>
+
+<script type="text/javascript">
+</script>
\ No newline at end of file

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewConfiguration.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html Fri Nov 18 21:42:08 2011
@@ -0,0 +1,35 @@
+<!--
+ 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.
+-->
+
+<table class="displaytable">
+	<tr>
+		<td class="description">
+			Lucene Query:
+		</td>
+		<td class="value">
+			<div id="luceneQueryDiv">${LUCENEQUERY}</div>
+		</td>
+	</tr>
+</table>
+
+<script type="text/javascript">
+var luceneQuery = "${CMISQUERY}";
+if(luceneQuery.trim()==""){
+  var luceneQueryDiv = document.getElementById("luceneQueryDiv");
+  luceneQueryDiv.innerHTML = "";
+}
+</script>

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/resource/org/apache/manifoldcf/crawler/connectors/alfresco/viewSpecification.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/Base.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/Base.java?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/Base.java (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/Base.java Fri Nov 18 21:42:08 2011
@@ -0,0 +1,36 @@
+/* $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.manifoldcf.crawler.connectors.alfresco.tests;
+
+
+/** This is a testing base class that is responsible for setting up/tearing down the agents framework. */
+public class Base extends org.apache.manifoldcf.crawler.tests.ConnectorBase
+{
+  
+  protected String[] getConnectorNames()
+  {
+    return new String[]{"Alfresco"};
+  }
+  
+  protected String[] getConnectorClasses()
+  {
+    return new String[]{"org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector"};
+  }
+
+}

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/Base.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/Base.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/Base.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BaseHSQLDB.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BaseHSQLDB.java?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BaseHSQLDB.java (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BaseHSQLDB.java Fri Nov 18 21:42:08 2011
@@ -0,0 +1,36 @@
+/* $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.manifoldcf.crawler.connectors.alfresco.tests;
+
+
+/** This is a testing base class that is responsible for setting up/tearing down the agents framework. */
+public class BaseHSQLDB extends org.apache.manifoldcf.crawler.tests.ConnectorBaseHSQLDB
+{
+  
+  protected String[] getConnectorNames()
+  {
+    return new String[]{"Alfresco"};
+  }
+  
+  protected String[] getConnectorClasses()
+  {
+    return new String[]{"org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector"};
+  }
+
+}

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BaseHSQLDB.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BaseHSQLDB.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BaseHSQLDB.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BasePostgresql.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BasePostgresql.java?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BasePostgresql.java (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BasePostgresql.java Fri Nov 18 21:42:08 2011
@@ -0,0 +1,36 @@
+/* $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.manifoldcf.crawler.connectors.alfresco.tests;
+
+
+/** This is a testing base class that is responsible for setting up/tearing down the agents framework. */
+public class BasePostgresql extends org.apache.manifoldcf.crawler.tests.ConnectorBasePostgresql
+{
+  
+  protected String[] getConnectorNames()
+  {
+    return new String[]{"Alfresco"};
+  }
+  
+  protected String[] getConnectorClasses()
+  {
+    return new String[]{"org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector"};
+  }
+
+}

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BasePostgresql.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BasePostgresql.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/BasePostgresql.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityHSQLDBTest.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityHSQLDBTest.java?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityHSQLDBTest.java (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityHSQLDBTest.java Fri Nov 18 21:42:08 2011
@@ -0,0 +1,35 @@
+/* $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.manifoldcf.crawler.connectors.alfresco.tests;
+
+import org.junit.Test;
+
+/** This is a very basic sanity check */
+public class SanityHSQLDBTest extends BaseHSQLDB
+{
+  
+  @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/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityHSQLDBTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityHSQLDBTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityHSQLDBTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityPostgresqlTest.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityPostgresqlTest.java?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityPostgresqlTest.java (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityPostgresqlTest.java Fri Nov 18 21:42:08 2011
@@ -0,0 +1,35 @@
+/* $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.manifoldcf.crawler.connectors.alfresco.tests;
+
+import org.junit.Test;
+
+/** This is a very basic sanity check */
+public class SanityPostgresqlTest extends BasePostgresql
+{
+  
+  @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/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityPostgresqlTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityPostgresqlTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityPostgresqlTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityTest.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityTest.java?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityTest.java (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityTest.java Fri Nov 18 21:42:08 2011
@@ -0,0 +1,35 @@
+/* $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.manifoldcf.crawler.connectors.alfresco.tests;
+
+import org.junit.Test;
+
+/** This is a very basic sanity check */
+public class SanityTest extends Base
+{
+  
+  @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/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/tests/SanityTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/pom.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/pom.xml?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/pom.xml (added)
+++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/pom.xml Fri Nov 18 21:42:08 2011
@@ -0,0 +1,220 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <parent>
+    <groupId>org.apache.manifoldcf</groupId>
+    <artifactId>mcf-connectors</artifactId>
+    <version>0.4.0-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  
+  <developers>
+    <developer>
+      <name>Piergiorgio Lucidi</name>
+      <organization>Sourcesense</organization>
+      <organizationUrl>http://www.sourcesense.com</organizationUrl>
+      <url>http://www.open4dev.com</url>
+    </developer>
+  </developers>
+  
+  <artifactId>mcf-alfresco-connector</artifactId>
+  <name>ManifoldCF - Connectors - Alfresco</name>
+
+  <build>
+    <sourceDirectory>${basedir}/connector/src/main/java</sourceDirectory>
+    <testSourceDirectory>${basedir}/connector/src/test/java</testSourceDirectory>
+    <resources>
+      <resource>
+        <directory>${basedir}/connector/src/main/resource</directory>
+        <includes>
+          <include>**/*.html</include>
+          <include>**/*.js</include>
+        </includes>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <excludes>
+            <exclude>**/*Postgresql*.java</exclude>
+          </excludes>
+          <forkMode>always</forkMode>
+          <workingDirectory>target/test-output</workingDirectory>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>commons-beanutils</groupId>
+      <artifactId>commons-beanutils</artifactId>
+      <version>1.7.0</version>
+    </dependency>
+    <dependency>
+      <groupId>commons-digester</groupId>
+      <artifactId>commons-digester</artifactId>
+      <version>1.6</version>
+    </dependency>
+    <dependency>
+      <groupId>commons-discovery</groupId>
+      <artifactId>commons-discovery</artifactId>
+      <version>0.2</version>
+    </dependency>
+    <dependency>
+      <groupId>javax.xml</groupId>
+      <artifactId>jaxrpc-api</artifactId>
+      <version>1.1</version>
+    </dependency>
+    <dependency>
+      <groupId>com.jcraft</groupId>
+      <artifactId>jsch</artifactId>
+      <version>0.1.38</version>
+    </dependency>
+    <dependency>
+      <groupId>org.opensaml</groupId>
+      <artifactId>opensaml</artifactId>
+      <version>1.0.1</version>
+    </dependency>
+    <dependency>
+      <groupId>javax.xml.soap</groupId>
+      <artifactId>saaj-api</artifactId>
+      <version>1.3</version>
+    </dependency>
+    <dependency>
+      <groupId>wsdl4j</groupId>
+      <artifactId>wsdl4j</artifactId>
+      <version>1.6.2</version>
+    </dependency>
+    <dependency>
+      <groupId>wss4j</groupId>
+      <artifactId>wss4j</artifactId>
+      <version>1.5.1</version>
+    </dependency>
+    <dependency>
+      <groupId>xalan</groupId>
+      <artifactId>xalan</artifactId>
+      <version>2.7.0</version>
+    </dependency>
+    <dependency>
+      <groupId>xerces</groupId>
+      <artifactId>xercesImpl</artifactId>
+      <version>2.8.0</version>
+    </dependency>
+    <dependency>
+      <groupId>bouncycastle</groupId>
+      <artifactId>bcprov-jdk15</artifactId>
+      <version>137</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.axis</groupId>
+      <artifactId>axis</artifactId>
+      <version>1.4</version>
+    </dependency>
+    <dependency>
+      <groupId>xml-security</groupId>
+      <artifactId>xmlsec</artifactId>
+      <version>1.4.1</version>
+    </dependency>
+    <dependency>
+      <groupId>commons-lang</groupId>
+      <artifactId>commons-lang</artifactId>
+      <version>2.4</version>
+    </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>mcf-core</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>mcf-agents</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>mcf-pull-agent</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>mcf-ui-core</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
+        <groupId>org.alfresco</groupId>
+        <artifactId>alfresco-web-service-client</artifactId>
+        <version>4.0.b</version>
+        <classifier>community</classifier>
+     </dependency>
+     <dependency>
+        <groupId>commons-lang</groupId>
+        <artifactId>commons-lang</artifactId>
+        <version>2.6</version>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>${junit.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>mcf-core</artifactId>
+      <version>${project.version}</version>
+      <type>test-jar</type>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>mcf-agents</artifactId>
+      <version>${project.version}</version>
+      <type>test-jar</type>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>mcf-pull-agent</artifactId>
+      <version>${project.version}</version>
+      <type>test-jar</type>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>postgresql</groupId>
+      <artifactId>postgresql</artifactId>
+      <version>${postgresql.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hsqldb</groupId>
+      <artifactId>hsqldb</artifactId>
+      <version>${hsqldb.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.derby</groupId>
+      <artifactId>derby</artifactId>
+      <version>${derby.version}</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/lcf/branches/CONNECTORS-287/lib/alfresco-web-service-client-4.0.b.jar
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/lib/alfresco-web-service-client-4.0.b.jar?rev=1203860&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lcf/branches/CONNECTORS-287/lib/alfresco-web-service-client-4.0.b.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lcf/branches/CONNECTORS-287/lib/h2-1.3.158.jar
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/lib/h2-1.3.158.jar?rev=1203860&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lcf/branches/CONNECTORS-287/lib/h2-1.3.158.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lcf/branches/CONNECTORS-287/lib/jetty-plus-6.1.26.jar
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/lib/jetty-plus-6.1.26.jar?rev=1203860&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lcf/branches/CONNECTORS-287/lib/jetty-plus-6.1.26.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lcf/branches/CONNECTORS-287/lib/mail.jar
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/lib/mail.jar?rev=1203860&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lcf/branches/CONNECTORS-287/lib/mail.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lcf/branches/CONNECTORS-287/lib/opensaml-1.0.1.jar
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/lib/opensaml-1.0.1.jar?rev=1203860&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lcf/branches/CONNECTORS-287/lib/opensaml-1.0.1.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lcf/branches/CONNECTORS-287/lib/wss4j-1.5.4-patched.jar
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/lib/wss4j-1.5.4-patched.jar?rev=1203860&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lcf/branches/CONNECTORS-287/lib/wss4j-1.5.4-patched.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lcf/branches/CONNECTORS-287/lib/xmlsec-1.4.1.jar
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/lib/xmlsec-1.4.1.jar?rev=1203860&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lcf/branches/CONNECTORS-287/lib/xmlsec-1.4.1.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: incubator/lcf/branches/CONNECTORS-287/pom.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/pom.xml?rev=1203860&r1=1203859&r2=1203860&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/pom.xml (original)
+++ incubator/lcf/branches/CONNECTORS-287/pom.xml Fri Nov 18 21:42:08 2011
@@ -40,7 +40,7 @@
     <!-- dependency versions -->
     <junit.version>4.8.2</junit.version>
     <postgresql.version>8.4-702.jdbc4</postgresql.version>
-    <hsqldb.version>2.2.5.10-27-2011</hsqldb.version>
+    <hsqldb.version>2.2.5</hsqldb.version>
     <derby.version>10.7.1.1</derby.version>
     <jetty.version>6.1.26</jetty.version>
   </properties>

Added: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-ANT.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-ANT.txt?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-ANT.txt (added)
+++ incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-ANT.txt Fri Nov 18 21:42:08 2011
@@ -0,0 +1,78 @@
+#    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.
+
+Sourcesense Alfresco Customization (Ant build):
+------------------------------------------------
+
+The project can be built by the means of two build systems:
+
+- Ant (suggested for fast startup and offline building)
+- Maven2 (suggested for structured team work and release)
+
+Both build systems provide Alfresco customized build and deploy on tomcat.
+WARNING: Make sure you run tomcat with appropriate JVM size (JAVA_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m")
+
+Ant Build Prerequisites:
+------------------------
+In order the build to work properly and resolve alfresco jar and war dependencies, 
+you have to download a version of alfresco in the folder
+
+$PROJECT_HOME/tools/ant/deps/alfresco
+
+or conveniently run the script:
+
+$PROJECT_HOME/tools/ant/ant-boostrap.sh
+
+which basically downloads a specified (Community) Alfresco distribution from Sourcesense public Maven repositories,
+and unpacks it in the mentioned folder. The WEB-INF/lib jars is added to build classpath.
+
+
+Alfresco ant WAR build:
+-----------------------
+
+- use build.xml in the root folder
+- configure your BUILDTIME/RUNTIME properties in 
+  src/main/properties/<yourEnv>/application.properties and build with -Denv=<yourEnv> 
+  (you can either commit this file or add it to svn:ignore for local usage)
+
+----
+NB: Before you can actually use the build you have to specify where to find the alfresco war (this is not needed for maven build who retrieves dependencies from public sourcesense maven repo, in case of community artifacts, from private maven repo for enterprise artifacts). To do so please create a build.properties file on the project root and fill it with the property:
+
+alfresco.dir
+
+pointing to the exploded war directory of the alfresco instance you want to use 
+---
+
+
+Common usage tasks:
+-------------------
+
+ant clean package
+ant install (in tomcat)
+ant remove (from tomcat)
+
+from the command line calls the default target (package) .
+
+For fast one-shot deploy: ANT_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m" ant [remove] install
+
+FAQ:
+----
+
+WARNING: the ant tomcat plugin is pretty memory intensive so please use ant with appropriate JVM memory size (ANT_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m")
+
+
+TODO:
+----
+- Support content restore

Propchange: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-ANT.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-ANT.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-ANT.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-m2.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-m2.txt?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-m2.txt (added)
+++ incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-m2.txt Fri Nov 18 21:42:08 2011
@@ -0,0 +1,122 @@
+---------------------------------------
+Archetype Release: Archetype - maven-alfresco-archetype
+Author: g.columbro@sourcesense.com
+Contacts: alfresco@sourcesense.com
+---------------------------------------
+M2 Instructions for Alfresco Extension:
+
+
+The project can be built by the means of two build systems:
+
+- Ant (suggested for fast startup and offline building) --> see README-ant.txt
+- Maven2 (suggested for structured team work and release) --> explained in this file
+
+Both build systems provide Alfresco customized build and deploy on tomcat.
+WARNING: Make sure you run tomcat/jboss with appropriate memory size (JAVA_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m")
+
+
+
+Alfresco maven2 WAR build
+-------------------------
+
+FEATURES:
+---------
+- centralized environment aware properties based configuration (common use cases covered with just properties file editing, contributions are more than welcome!)
+- Content Bootstrap
+- WAR customized build
+- environment dependent deploy
+- easy switch of alfresco version
+- jetty embedded build
+- jboss (local) and tomcat (local/remote) deployment support
+
+PROJECT LAYOUT
+--------------
+
+src --------------------------------------------------------> (source folder)
+		|
+		|__ main ___ __ resources --------------------------> mapped in the classpath  
+		|			|			  |
+		|			|			  |__ alfresco/extension ---> alfresco overriding Spring contexts
+		|			|
+		|			|__ properties ------------------------->  environment aware application properties files  
+		|			|				|
+		|			|				|__ local  ------------->  default application.properties
+		|			|
+		|			|__ java ------------------------------->  customization java classes
+		|			|
+		|			|__ webapp -----------------------------> alfresco webapp overlay folder - this folder is overlayed (so may overwrite alfresco war)
+		|						|
+		|						|__ WEB-INF	----------------> drop in this folder WEB-INF custom / overwriting files (e.g. faces-config-custom.xml / web.xml)	
+		|			
+		|__ test
+
+tools --
+		|__ ant ---------------------------------------------> ant tools
+		|__ m2  ---------------------------------------------> maven2 tools
+		|__ export ------------------------------------------> support folder for automatic restore (drop acp+xml files here)
+		|__ mysql -------------------------------------------> mysql setup/remove scripts, filtered based on the profile into  
+
+target - Project build dir
+
+
+
+Lifecycle HOWTO - Usage
+-----------------------
+
+--- Fast one shot build and embedded jetty run-war|run-exploded  [and restore bootstrap] [and customize webappName] [and integrate LDAP]:
+
+' MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m mvn integration-test" [-Denv=yourEnv] [-DrestoreVersion=versionToRestore] [-DwebappName=yourCustomWebappName] [-Denterprise] '
+
+(default env=src/main/properties/local/application.properties)
+
+--- [Re]Deploy on Jboss (locally) [or on Tomcat locally or remotely]:
+
+'  mvn clean package [cargo:undeploy] cargo:deploy -Pjboss [-Ptomcat] ' 
+
+Note: Jboss or Tomcat must be running prior to deployment
+
+--- Packaging and Manual Deploy:
+- Invoke  ' mvn clean package -Denv=targetEnv ' 
+from the root project's folder; for a list of available environments check src/main/properties/<env>/application.properties
+or create a custom src/main/properties/<env>/application.properties
+- Copy target/${webapp.name}.war in $JBOSS_HOME/server/default/deploy or in $CATALINA_HOME/webapps
+	
+--- Import data exports:
+- Invoke the maven package goal using -DrestoreVersion=<version>, where <version> is the name of one of the folders listed below tools/export
+
+- NB: Due to http://forums.alfresco.com/viewtopic.php?p=29429#29429 with embedded jetty run we run into this bug, which prevents boostrap from working.
+Restore properly works and was tested under Jboss and Tomcat.
+
+--- Release process
+Just one command: ' mvn release:prepare release:perform '
+
+You can customize goals to be executed in both phases in the maven-release-plugin configuration section in the POM.
+
+FAQ:
+----
+--- Eclipse configuration
+-Run ' mvn eclipse:eclipse ' 
+-hit "Refresh" on your Eclipse project
+
+--- Db access problems:
+Remember to setup appropriate permissions for selected db / build profile.
+You can either edit accordingly and then run: mysql -u root < tools/mysql/db_setup.sql 
+
+or if you use POM property 'alfresco.db.name' you have sql files already filtered (after process-resources phase) in
+
+mysql -u root -p < target/classes/tools/[db_setup,db_remove].sql   
+
+--- Out of memory errors:
+Run your build with :
+MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m" mvn ... ...
+
+--- Content integrity errors on restore running with jetty embedded
+Did you remove also alf_data_jetty apart from the alf_jetty db ?
+
+--- Release Problems with LC_ALL
+If underlying svn complains about LC_ALL variable please consider running your release prepending:
+LC_ALL="C"  (macosx environments, see http://svn.haxx.se/users/archive-2006-07/0320.shtml)
+
+--- Install manually JTA (if needed):
+- Download jta-1_0_1B-classes.zip from http://java.sun.com/products/jta/
+- mvn install:install-file -Dfile=./jta-1_0_1B-classes.zip -DgroupId=jta -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar

Propchange: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-m2.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-m2.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/README-m2.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/build.xml?rev=1203860&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/build.xml (added)
+++ incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/build.xml Fri Nov 18 21:42:08 2011
@@ -0,0 +1,88 @@
+<?xml version="1.0"?>
+
+<project name="mcf-tests-alfresco" default="package" basedir=".">
+
+	<!-- Build properties -->
+	<property name="project.dir" value="."/>
+	<property name="tools.dir" value="tools"/>
+	<property name="build.dir" value="${project.dir}/target"/>
+	<property name="web.dir" value="${project.dir}/src/main/webapp" />
+	<property name="sources.dir" value="${project.dir}/src/main/java"/>
+	<property name="resources.dir" value="${project.dir}/src/main/resources"/>
+	<property name="properties.dir" value="${project.dir}/src/main/properties"/>
+	<property name="lib.dir" value="${tools.dir}/ant/deps"/>
+	<!-- NB: This must be filled in here or in build.properties pointing to the root folder of the alfresco exploded war you want to build against
+	<property name="alfresco.dir" value=""/>
+	-->
+	
+	<!-- By default loads src/main/properties/local/alfresco-global.properties -->
+	<property name="env" value="local"/>
+	<property name="webapp.name" value="alfresco" />
+
+	<property file="${properties.dir}/${env}/alfresco-global.properties" />
+
+	<!-- Import tomcat utility tasks -->
+	<import file="${tools.dir}/ant/tasks/tomcat-tasks.xml"/>
+	
+	<path id="build.classpath">
+		<fileset dir="${lib.dir}">
+			<include name="build/*.jar"/>
+			<include name="alfresco/WEB-INF/lib/*.jar"/>
+		</fileset>
+	</path>
+
+	<target name="clean">
+		<delete dir="${build.dir}" />
+	</target>
+
+	<target name="prepare">
+		<mkdir dir="${build.dir}" />
+		<mkdir dir="${build.dir}/classes"/>
+	</target>
+
+	<target name="compile" depends="prepare">
+		<javac srcdir="${sources.dir}" destdir="${build.dir}/classes" classpathref="build.classpath"/>
+	</target>
+
+	<target name="process-resources">
+		<copy todir="${build.dir}/classes">
+			<fileset dir="${resources.dir}">
+				<include name="alfresco/extension/*" />
+				<exclude name="**/restore-context.xml" />
+			</fileset>
+		</copy>
+		<copy file="${properties.dir}/${env}/alfresco-global.properties" tofile="${build.dir}/classes/alfresco-global.properties"></copy>
+	</target>
+
+
+	<target name="package" depends="compile,process-resources" description="Packages application - To execute this task the property alfresco.dir must be set">
+		<fail message="property alfresco.dir must point for alfresco instance you want to build your extension upon">
+	     <condition>
+	       <not>
+	         <isset property="alfresco.dir"/>
+	       </not>
+	     </condition>
+	   </fail>
+	   <copy todir="${build.dir}/${webapp.name}">
+			<fileset dir="${alfresco.dir}">
+				<include name="**" />
+			</fileset>
+		</copy>
+		<copy todir="${build.dir}/${webapp.name}/WEB-INF/classes">
+			<fileset dir="${build.dir}/classes">
+				<include name="**" />
+			</fileset>
+		</copy>
+		<copy todir="${build.dir}/${webapp.name}/WEB-INF/lib">
+			<fileset dir="${lib.dir}/runtime">
+				<include name="**.jar" />
+			</fileset>
+		</copy>
+		<war destfile="${build.dir}/${webapp.name}.war" webxml="${build.dir}/${webapp.name}/WEB-INF/web.xml">
+			<fileset dir="${build.dir}/${webapp.name}">
+				<include name="**/**" />
+			</fileset>
+		</war>
+	</target>
+
+</project>
\ No newline at end of file

Propchange: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/build.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/lcf/branches/CONNECTORS-287/tests/alfresco/alfresco-war/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message