Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ant-dev] [Planty] Copies of org.apache.ant classes

I needed the configureProject(...) method of the ProjectHelper with
different parameters.
In my own copy of the ProjectHelper I introduced my own method:

--- snip ---
    /**
     * That is the one method that was needed and why copying of this
package
     * from ant 1.5 had to be done. Other than usual Ant processing, here
we don't
     * work on a file but on a string.
     *
     * @param project the project
     * @param aWholeDocumentString the string that contains the whole
docoment
     * that we want to configure the project on.
     *
     * @author Alf Schiefelbein
     */
    public static void configureProject(Project project, File aFile, String
aWholeDocumentString)
        throws BuildException {
        ProjectHelperImpl helper
= (ProjectHelperImpl)ProjectHelper.getProjectHelper();
        helper.parse(project, aFile, aWholeDocumentString);
    }
--- snap ---

The other three classes are just simple copies. Dependencies on package
private methods
forced me to just copy them. There might be more elegant ways of solving
this though ...

Alf

---------------
> Alf, I noticed that you've got a couple copies of what appear to be older
> versions of classes from the org.apache.ant project. The classes live in
the
> de.gebit.planty.internal.ant package.
>
> Are these files modified in some way that is necessary for Planty or can
we
> remove them and reference the versions in the Eclipse plug-in?
>
> Thanks,
> - Jared



Back to the top