You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by km...@apache.org on 2007/11/06 04:53:02 UTC
svn commit: r592255 - in /cayenne/main/branches/STABLE-1.2/cayenne:
cayenne-java/src/cayenne/java/org/objectstyle/cayenne/tools/CayenneTask.java
cayenne-other/release-notes/RELEASE-NOTES-1.2.4.txt
cayenne-other/release-notes/RELEASE-NOTES-1.2.5.txt
Author: kmenard
Date: Mon Nov 5 19:53:00 2007
New Revision: 592255
URL: http://svn.apache.org/viewvc?rev=592255&view=rev
Log:
Fixed WWW-263: cdbgen (DbGeneratorTask) must support classpath and classpathref.
Added:
cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.5.txt
Modified:
cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/tools/CayenneTask.java
cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.4.txt
Modified: cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/tools/CayenneTask.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/tools/CayenneTask.java?rev=592255&r1=592254&r2=592255&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/tools/CayenneTask.java (original)
+++ cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/tools/CayenneTask.java Mon Nov 5 19:53:00 2007
@@ -57,15 +57,50 @@
import org.apache.log4j.BasicConfigurator;
import org.apache.tools.ant.Task;
+import org.apache.tools.ant.types.Path;
+import org.apache.tools.ant.types.Reference;
import org.objectstyle.cayenne.conf.Configuration;
/**
* A superclass of Cayenne Ant tasks. Performs some common setup
*
- * @author Andrei Adamchik
+ * @author Andrei Adamchik, Kevin Menard
* @since 1.2
*/
public abstract class CayenneTask extends Task {
+
+ protected Path classpath;
+
+ /**
+ * Sets the classpath used by the task.
+ *
+ * @param path The classpath to set.
+ */
+ public void setClasspath(Path path) {
+ createClasspath().append(path);
+ }
+
+ /**
+ * Sets the classpath reference used by the task.
+ *
+ * @param reference The classpath reference to set.
+ */
+ public void setClasspathRef(Reference reference) {
+ createClasspath().setRefid(reference);
+ }
+
+ /**
+ * Convenience method for creating a classpath instance to be used for the task.
+ *
+ * @return The new classpath.
+ */
+ private Path createClasspath() {
+ if (null == classpath) {
+ classpath = new Path(getProject());
+ }
+
+ return classpath.createPath();
+ }
/**
* Sets up logging to be in line with the Ant logging system. It should be called by
Modified: cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.4.txt
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.4.txt?rev=592255&r1=592254&r2=592255&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.4.txt (original)
+++ cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.4.txt Mon Nov 5 19:53:00 2007
@@ -1,5 +1,5 @@
Cayenne Release Notes 1.2.4
-Date:
+Date: 10/12/2007
============================================
For the latest information visit project web site:
Added: cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.5.txt
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.5.txt?rev=592255&view=auto
==============================================================================
--- cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.5.txt (added)
+++ cayenne/main/branches/STABLE-1.2/cayenne/cayenne-other/release-notes/RELEASE-NOTES-1.2.5.txt Mon Nov 5 19:53:00 2007
@@ -0,0 +1,15 @@
+Cayenne Release Notes 1.2.5
+Date:
+============================================
+
+For the latest information visit project web site:
+http://objectstyle.org/cayenne/
+
+To browse individual bug reports check out project issue tracker:
+http://issues.apache.org/cayenne/
+
+Changes:
+
+CAY-263 cdbgen (DbGeneratorTask) must support classpath and classpathref
+
+Bug Fixes: