Hi

Are source sets tied to the java plugin?

I am working on a very small plugin to do some relaxNG preprocessing.
This might not be used in a java project, but I would like to use the
source set concept for accessing the input files. For example, the
default location for the input main rng file might be in
project.sourceDir/main/relax. I might also want to do something like:

apply plugin:MyRelaxPlugin

sourceSets {
    main {
        relax {
            srcDir 'src/relax'
        }
    }
}

and then be able to use sourceSets.main.relax within the tasks in my plugin.

I know that the groovy and scala plugins get source sets for free
because they also use the java plugin internally. But is it possible
to do something like:
project.getPlugins().apply(SourceSetsPlugin.class);'
in a non-java plugin? It seems like the concept of a sourceSet is
generic to any type of "build", and is not tied to java.

thanks,
Philip

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to