Quantcast

question about using xslt-generator-maven-plugin in gradle

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

question about using xslt-generator-maven-plugin in gradle

leohu
This post has NOT been accepted by the mailing list yet.
im a beginner of gradle. im trying to use xslt-genreate-maven-plugin in my project and i have no idea how to write in a gradle script way?   can somebody help me with it?  a lot thinks.

<plugins>
            <plugin>
                <groupId>net.sf.xsltmp</groupId>
                <artifactId>xslt-generator-maven-plugin</artifactId>
                <version>1.8</version>

                <executions>
                    <execution>
                        <id>transform-fields</id>
                        <goals>
                            <goal>many-to-many</goal>
                        </goals>
                        <configuration>
                            <xslTemplate>src/main/xml/xxxx.xsl</xslTemplate>
                            <srcDir>src/main/xml</srcDir>
                            <destDir>target/generated-sources/java</destDir>
                            <srcIncludes>xxxx.xml</srcIncludes>
                            <addDestDirTo>sources</addDestDirTo>
                            <fileNameRegex>.+\.xml</fileNameRegex>
                            <fileNameReplacement>xxx\.java</fileNameReplacement>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
Loading...