manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piergior...@apache.org
Subject svn commit: r1837730 - /manifoldcf/branches/CONNECTORS-1490/connectors/mongodb/build.xml
Date Thu, 09 Aug 2018 13:50:50 GMT
Author: piergiorgio
Date: Thu Aug  9 13:50:49 2018
New Revision: 1837730

URL: http://svn.apache.org/viewvc?rev=1837730&view=rev
Log:
- fix for executing tests using Ant: added the download of the Embedded MongoDB library in
the Ant build (CONNECTORS-1490)

Modified:
    manifoldcf/branches/CONNECTORS-1490/connectors/mongodb/build.xml

Modified: manifoldcf/branches/CONNECTORS-1490/connectors/mongodb/build.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1490/connectors/mongodb/build.xml?rev=1837730&r1=1837729&r2=1837730&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1490/connectors/mongodb/build.xml (original)
+++ manifoldcf/branches/CONNECTORS-1490/connectors/mongodb/build.xml Thu Aug  9 13:50:49 2018
@@ -93,5 +93,24 @@
             </condition>
         </fail>
     </target>
+	
+	  <property name="embedded-mongodb.version.label" value="2.1.2"/>
+    <property name="embedded-mongodb.version.snapshot" value="20180621.063700-1" />
+    <property name="embedded-mongodb.artifactId" value="de.flapdoodle.embed.mongo"/>
+    <property name="embedded-mongodb-package" value="de/flapdoodle/embed"/>    
+	  <property name="embedded-mongodb.snapshot-jar" value="${embedded-mongodb.artifactId}-${embedded-mongodb.version.label}-${embedded-mongodb.version.snapshot}.jar"/>
+
+	  <target name="calculate-testcode-condition">
+	    <available file="test-lib/${embedded-mongodb.snapshot-jar}" property="tests-present"/>
+	  </target>
+
+    <target name="pretest-warn" depends="calculate-testcode-condition" unless="tests-present">
+      <echo message="Need Embedded MongoDB download in order to run tests - run ant make-deps"/>
+    </target>
+	
+    <target name="download-dependencies">
+      <property name="sonatype-maven-repo" value="https://oss.sonatype.org/content/repositories/snapshots"
/>
+      <get src="${sonatype-maven-repo}}/${embedded-mongodb-package}/${embedded-mongodb.artifactId}/${embedded-mongodb.version}/${embedded-mongodb.snapshot-jar}"
dest="test-materials/${embedded-mongodb.snapshot-jar}"/>
+	  </target>
 
 </project>



Mime
View raw message