edvicif / ResourcePicker-Maven-Plugin

Picks up resources from the classpath and generates an "enum" for the contents of the files
2 stars 1 forks source link

create prototype plugin and plugin tester project, filenames in enum #9

Closed balopat closed 12 years ago

balopat commented 12 years ago

as the first spike we'd like to see a quick feel about how it would look like. Functionality:

Given two sample files (sample1.xml, sample2.xml), when the touch mvn goal is executed on test project, the plugin lists the files into a generated enum, com.mycompany.R:

package com.mycompany; public enum R {

SAMPLE1_XML("sample1.xml"),SAMPLE2_XML("sample2.xml")

private R(String fileName) { } }

balopat commented 12 years ago

Guys this is the done part, just to make it clear backwards ;)