|
@@ -328,7 +328,9 @@ public class ProjectHelper { |
|
|
project.addReference(name, project); |
|
|
project.addReference(name, project); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (id != null) project.addReference(id, project); |
|
|
|
|
|
|
|
|
if (id != null) { |
|
|
|
|
|
project.addReference(id, project); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (project.getProperty("basedir") != null) { |
|
|
if (project.getProperty("basedir") != null) { |
|
|
project.setBasedir(project.getProperty("basedir")); |
|
|
project.setBasedir(project.getProperty("basedir")); |
|
@@ -435,8 +437,9 @@ public class ProjectHelper { |
|
|
target.setDescription(description); |
|
|
target.setDescription(description); |
|
|
project.addTarget(name, target); |
|
|
project.addTarget(name, target); |
|
|
|
|
|
|
|
|
if (id != null && !id.equals("")) |
|
|
|
|
|
|
|
|
if (id != null && !id.equals("")) { |
|
|
project.addReference(id, target); |
|
|
project.addReference(id, target); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// take care of dependencies |
|
|
// take care of dependencies |
|
|
|
|
|
|
|
@@ -666,8 +669,9 @@ public class ProjectHelper { |
|
|
|
|
|
|
|
|
public static void configure(Object target, AttributeList attrs, |
|
|
public static void configure(Object target, AttributeList attrs, |
|
|
Project project) throws BuildException { |
|
|
Project project) throws BuildException { |
|
|
if( target instanceof TaskAdapter ) |
|
|
|
|
|
|
|
|
if( target instanceof TaskAdapter ) { |
|
|
target=((TaskAdapter)target).getProxy(); |
|
|
target=((TaskAdapter)target).getProxy(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
IntrospectionHelper ih = |
|
|
IntrospectionHelper ih = |
|
|
IntrospectionHelper.getHelper(target.getClass()); |
|
|
IntrospectionHelper.getHelper(target.getClass()); |
|
@@ -709,8 +713,9 @@ public class ProjectHelper { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(target instanceof TaskAdapter) |
|
|
|
|
|
|
|
|
if(target instanceof TaskAdapter) { |
|
|
target = ((TaskAdapter) target).getProxy(); |
|
|
target = ((TaskAdapter) target).getProxy(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
IntrospectionHelper.getHelper(target.getClass()).addText(project, target, text); |
|
|
IntrospectionHelper.getHelper(target.getClass()).addText(project, target, text); |
|
|
} |
|
|
} |
|
|