bodewig 2005/01/10 05:26:47
Modified: src/main/org/apache/tools/ant/taskdefs DefBase.java
Log:
Save three LOC
Revision Changes Path
1.12 +2 -5 ant/src/main/org/apache/tools/ant/taskdefs/DefBase.java
Index: DefBase.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/DefBase.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- DefBase.java 11 May 2004 16:49:48 -0000 1.11
+++ DefBase.java 10 Jan 2005 13:26:47 -0000 1.12
@@ -1,5 +1,5 @@
/*
- * Copyright 2003-2004 The Apache Software Foundation
+ * Copyright 2003-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -128,11 +128,8 @@
if (getAntlibClassLoader() != null && cpDelegate == null) {
return getAntlibClassLoader();
}
- if (cpDelegate == null) {
- cpDelegate = ClasspathUtils.getDelegate(this);
- }
if (createdLoader == null) {
- createdLoader = cpDelegate.getClassLoader();
+ createdLoader = getDelegate().getClassLoader();
// need to load Task via system classloader or the new
// task we want to define will never be a Task but always
// be wrapped into a TaskAdapter.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]