You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Andrew Pietsch (JIRA)" <ji...@apache.org> on 2008/05/19 07:13:55 UTC

[jira] Created: (BUILDR-73) idea7x task incorrect adds target/resources to the sources paths

idea7x task incorrect adds target/resources to the sources paths
----------------------------------------------------------------

                 Key: BUILDR-73
                 URL: https://issues.apache.org/jira/browse/BUILDR-73
             Project: Buildr
          Issue Type: Bug
          Components: IDE
    Affects Versions: 1.3
         Environment: Mac OS 10.4 PPC
ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
Buildr 1.3.0 
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing)

            Reporter: Andrew Pietsch
            Priority: Minor


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
 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (BUILDR-73) idea7x task incorrect adds target/resources to the sources paths

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Assaf Arkin resolved BUILDR-73.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.2

Added in SVN.

> idea7x task incorrect adds target/resources to the sources paths
> ----------------------------------------------------------------
>
>                 Key: BUILDR-73
>                 URL: https://issues.apache.org/jira/browse/BUILDR-73
>             Project: Buildr
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: 1.3
>         Environment: Mac OS 10.4 PPC
> ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
> Buildr 1.3.0 
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
> Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing)
>            Reporter: Andrew Pietsch
>            Priority: Minor
>             Fix For: 1.3.2
>
>         Attachments: exclude_target_resources.patch
>
>
> 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
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-73) idea7x task incorrect adds target/resources to the sources paths

Posted by "Shane Witbeck (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shane Witbeck updated BUILDR-73:
--------------------------------

    Attachment: exclude_target_resources.patch

patch to exclude target/resources from source paths

> idea7x task incorrect adds target/resources to the sources paths
> ----------------------------------------------------------------
>
>                 Key: BUILDR-73
>                 URL: https://issues.apache.org/jira/browse/BUILDR-73
>             Project: Buildr
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: 1.3
>         Environment: Mac OS 10.4 PPC
> ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
> Buildr 1.3.0 
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
> Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing)
>            Reporter: Andrew Pietsch
>            Priority: Minor
>         Attachments: exclude_target_resources.patch
>
>
> 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
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-73) idea7x task incorrect adds target/resources to the sources paths

Posted by "Shane Witbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608116#action_12608116 ] 

Shane Witbeck commented on BUILDR-73:
-------------------------------------

I added the target/resources path when I wrote the task to be consistent with the other tasks (idea, eclipse). If I remember correctly, it was an issue specifically with eclipse. If I have time I will submit a patch to not include target/resources in source folders.

> idea7x task incorrect adds target/resources to the sources paths
> ----------------------------------------------------------------
>
>                 Key: BUILDR-73
>                 URL: https://issues.apache.org/jira/browse/BUILDR-73
>             Project: Buildr
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: 1.3
>         Environment: Mac OS 10.4 PPC
> ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
> Buildr 1.3.0 
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
> Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing)
>            Reporter: Andrew Pietsch
>            Priority: Minor
>
> 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
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.