Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.3
-
None
Description
The idea7x task is incorrectly adding target/resources to the list of source folders. This causes duplicate entries when searching for files in src/main/resources as it also finds the copies in target/resources. This is happening on a project where I've used the antlr task in conjunction with compile.from. The idea7x task is correctly adding generated/antlr to the list of source folders.
The build file is attached below:
- Generated by Buildr 1.3.0, change to your liking
- Version number for this release
VERSION_NUMBER = "1.0.0" - Version number for the next release
NEXT_VERSION = "1.0.1" - Group identifier for your projects
GROUP = "com.pietschy"
COPYRIGHT = "Andrew Pietsch (C) 2008"
ANTLR_RUNTIME = 'org.antlr:antlr-runtime:jar:3.0'
EASYMOCK = 'org.easymock:easymock:jar:2.2'
- Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"
desc "The Pectin Binding Framework for Swing"
define "pectin" do
project.version = VERSION_NUMBER
project.group = GROUP
manifest['Copyright'] = COPYRIGHT
manifest["Implementation-Vendor"] = COPYRIGHT
compile.options.target = '1.5'
define "main" do
antlr_options =
{
:in_package=>'com.pietschy.binding.presentation.generic.expression.antlr',
:token=>'com.pietschy.binding.presentation.generic.expression.antlr'
}
compile.from(antlr(_(:src, :main, :java), antlr_options))
compile.with(ANTLR_RUNTIME)
test.with EASYMOCK
test.using :testng
package(:jar, :id=>'pectin').merge(artifact(ANTLR_RUNTIME))
end
end