Browse Source

Save three LOC

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277327 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
7fcf3ddeae
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      src/main/org/apache/tools/ant/taskdefs/DefBase.java

+ 2
- 5
src/main/org/apache/tools/ant/taskdefs/DefBase.java View File

@@ -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 @@ public abstract class DefBase extends AntlibDefinition {
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.


Loading…
Cancel
Save