You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2006/12/24 23:48:45 UTC
svn commit: r490081 -
/ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
Author: peterreilly
Date: Sun Dec 24 14:48:45 2006
New Revision: 490081
URL: http://svn.apache.org/viewvc?view=rev&rev=490081
Log:
allow path components to be directly added to AntClassLoader
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java?view=diff&rev=490081&r1=490080&r2=490081
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java Sun Dec 24 14:48:45 2006
@@ -461,6 +461,20 @@
}
/**
+ * Add a path component.
+ * This simply adds the file, unlike addPathElement
+ * it does not open jar files and load files from
+ * their CLASSPATH entry in the manifest file.
+ * @param file the jar file or directory to add.
+ */
+ public void addPathComponent(File file) {
+ if (pathComponents.contains(file)) {
+ return;
+ }
+ pathComponents.addElement(file);
+ }
+
+ /**
* Add a file to the path.
* Reads the manifest, if available, and adds any additional class path jars
* specified in the manifest.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org