Posts Tagged ‘svg’
flamingo-maven-plugin-1.1 released!
flamingo-maven-plugin transcode SVG files into Java2D classes that can implement ResizableIcon from the Flamingo / Insubstantial projects
The project is hosted in maven central. here you’ll find a quick copy/paste for the dependency.
Transcode SVG files
Use the following goal: transcode
Configuration inside the POM
Here is a quick example:
<plugin>
<groupId>org.codeartisans</groupId>
<artifactId>flamingo-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>icons</id>
<phase>generate-sources</phase>
<goals><goal>transcode</goal></goals>
<configuration>
<sourceDirectory>${project.basedir}/src/main/svg</sourceDirectory>
<outputPackage>com.example.icons</outputPackage>
<implementsResizableIcon>true</implementsResizableIcon><!-- Defaults to false -->
<stopOnFailure>false</stopOnFailure> <!-- Defaults to true -->
</configuration>
</execution>
</executions>
</plugin>
