incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 10071 - in incubator/depot/trunk/update/src: java/org/apache/depot/update/ant/sandbox/chalko test/org/apache/depot/update/ant/sandbox/chalko
Date Fri, 16 Apr 2004 23:54:35 GMT
Author: nickchalko
Date: Fri Apr 16 16:54:35 2004
New Revision: 10071

Modified:
   incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/sandbox/chalko/UpdateSet.java
   incubator/depot/trunk/update/src/test/org/apache/depot/update/ant/sandbox/chalko/build.xml
Log:
Fixed local repository dir.

Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/sandbox/chalko/UpdateSet.java
==============================================================================
--- incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/sandbox/chalko/UpdateSet.java
(original)
+++ incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/sandbox/chalko/UpdateSet.java
Fri Apr 16 16:54:35 2004
@@ -38,6 +38,7 @@
  * @version $Revision: $
  */
 public class UpdateSet extends DataType {
+	public static final String DEFAULT_LOCAL_REPOSITORY_DIR_NAME = "local-repository";
 	public static final String LOCAL_REPOSITORY_ID = "local.repository";
 	public static final String REPOSITORY_DIR_PROPERTY = "repository.dir";
 	private final Project project;
@@ -149,7 +150,7 @@
 	private File getRepoDir() {
 		String repoDir = project.getProperty(REPOSITORY_DIR_PROPERTY);
 		if (repoDir == null) {
-			repoDir = getDepotHome() + "/local-repository";
+			repoDir = getDepotHome() + "/"+DEFAULT_LOCAL_REPOSITORY_DIR_NAME;
 		}
 		File repo = new File(repoDir);
 		if (!repo.exists()) {

Modified: incubator/depot/trunk/update/src/test/org/apache/depot/update/ant/sandbox/chalko/build.xml
==============================================================================
--- incubator/depot/trunk/update/src/test/org/apache/depot/update/ant/sandbox/chalko/build.xml
(original)
+++ incubator/depot/trunk/update/src/test/org/apache/depot/update/ant/sandbox/chalko/build.xml
Fri Apr 16 16:54:35 2004
@@ -22,7 +22,7 @@
     <repository id="maven" url="http://www.ibiblio.org/maven/" remote="true"/>
     <repository id="localtest" url="file:///${localtest.dir}" remote="true"/>
     <target name="test1" depends="clean-jars">
-        <copy toDir="${ant.home}/tools/repo">
+        <copy toDir="${depot.home}/local-repository">
             <fileset dir="${localtest.dir}"/>
         </copy>
         <updateset id="test1">

Mime
View raw message