From 7fcf3ddeae23e61292c14fda580bb4d229d5b895 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 10 Jan 2005 13:26:47 +0000 Subject: [PATCH] Save three LOC git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277327 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/DefBase.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/DefBase.java b/src/main/org/apache/tools/ant/taskdefs/DefBase.java index 70a3dbc8d..b66eb4cbe 100644 --- a/src/main/org/apache/tools/ant/taskdefs/DefBase.java +++ b/src/main/org/apache/tools/ant/taskdefs/DefBase.java @@ -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.