You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Neil Curzon (JIRA)" <ji...@apache.org> on 2008/05/29 04:30:45 UTC
[jira] Created: (BUILDR-77) Layout feature not working
Layout feature not working
--------------------------
Key: BUILDR-77
URL: https://issues.apache.org/jira/browse/BUILDR-77
Project: Buildr
Issue Type: Bug
Components: Core features
Affects Versions: 1.3
Environment: WindowsXP, OSX
Reporter: Neil Curzon
Layouts as documented on the buildr site here (http://incubator.apache.org/buildr/extending.html#using_alternative_layouts) aren't working.
My custom My sources are in src, tests in test. Here's the buildfile:
require 'buildr'
VERSION_NUMBER = '1.0'
repositories.remote << 'http://www.ibiblio.org/maven2/'
define 'app' do
project.version = VERSION_NUMBER
compile.options.target = '1.5'
legacy_layout = Layout.new
legacy_layout[:source, :main, :java] = 'src'
legacy_layout[:source, :test, :java] = 'test'
define 'myproject', :layout => legacy_layout do
puts "Path to: #{path_to(:source, :main, :java)}"
puts "Compile target: #{compile.target}"
puts "Compile sources: #{compile.sources}"
package :jar
end
end
The build fails with output:
C:\Documents and Settings\neil\test>buildr
(in C:/Documents and Settings/neil/test, development)
Path to: C:/Documents and Settings/neil/test/myproject/src
Compile target: C:/Documents and Settings/neil/test/myproject/target/main/classes
Compile sources:
Building app
Testing app
Testing app:myproject
IOException: No file or directory with the name C:\Documents and Settings\neil\test\myproject\target\main\classes
rake aborted!
No file or directory with the name C:\Documents and Settings\neil\test\myproject\target\main\classes
When you create the directories it complains about (strangely target/main/classes and target/test/classes), the build passes, but nothing gets compiled or tested.
When the sources are in the default place, you get debugging output from the compile task like this:
Path to: C:/Documents and Settings/neil/test/second/src/main/java
Compile target: C:/Documents and Settings/neil/test/second/target/classes
Compile sources: C:/Documents and Settings/neil/test/second/src/main/java
Building app
Compiling app:second
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (BUILDR-77) Layout feature not working
Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BUILDR-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Victor Hugo Borja reassigned BUILDR-77:
---------------------------------------
Assignee: Victor Hugo Borja
> Layout feature not working
> --------------------------
>
> Key: BUILDR-77
> URL: https://issues.apache.org/jira/browse/BUILDR-77
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.3
> Environment: WindowsXP, OSX
> Reporter: Neil Curzon
> Assignee: Victor Hugo Borja
>
> Layouts as documented on the buildr site here (http://incubator.apache.org/buildr/extending.html#using_alternative_layouts) aren't working.
> My custom My sources are in src, tests in test. Here's the buildfile:
> require 'buildr'
> VERSION_NUMBER = '1.0'
> repositories.remote << 'http://www.ibiblio.org/maven2/'
> define 'app' do
> project.version = VERSION_NUMBER
> compile.options.target = '1.5'
>
> legacy_layout = Layout.new
> legacy_layout[:source, :main, :java] = 'src'
> legacy_layout[:source, :test, :java] = 'test'
> define 'myproject', :layout => legacy_layout do
> puts "Path to: #{path_to(:source, :main, :java)}"
> puts "Compile target: #{compile.target}"
> puts "Compile sources: #{compile.sources}"
> package :jar
> end
> end
> The build fails with output:
> C:\Documents and Settings\neil\test>buildr
> (in C:/Documents and Settings/neil/test, development)
> Path to: C:/Documents and Settings/neil/test/myproject/src
> Compile target: C:/Documents and Settings/neil/test/myproject/target/main/classes
> Compile sources:
> Building app
> Testing app
> Testing app:myproject
> IOException: No file or directory with the name C:\Documents and Settings\neil\test\myproject\target\main\classes
> rake aborted!
> No file or directory with the name C:\Documents and Settings\neil\test\myproject\target\main\classes
> When you create the directories it complains about (strangely target/main/classes and target/test/classes), the build passes, but nothing gets compiled or tested.
> When the sources are in the default place, you get debugging output from the compile task like this:
> Path to: C:/Documents and Settings/neil/test/second/src/main/java
> Compile target: C:/Documents and Settings/neil/test/second/target/classes
> Compile sources: C:/Documents and Settings/neil/test/second/src/main/java
> Building app
> Compiling app:second
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (BUILDR-77) Layout feature not working
Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BUILDR-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Victor Hugo Borja resolved BUILDR-77.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.3.1
> Layout feature not working
> --------------------------
>
> Key: BUILDR-77
> URL: https://issues.apache.org/jira/browse/BUILDR-77
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.3
> Environment: WindowsXP, OSX
> Reporter: Neil Curzon
> Assignee: Victor Hugo Borja
> Fix For: 1.3.1
>
>
> Layouts as documented on the buildr site here (http://incubator.apache.org/buildr/extending.html#using_alternative_layouts) aren't working.
> My custom My sources are in src, tests in test. Here's the buildfile:
> require 'buildr'
> VERSION_NUMBER = '1.0'
> repositories.remote << 'http://www.ibiblio.org/maven2/'
> define 'app' do
> project.version = VERSION_NUMBER
> compile.options.target = '1.5'
>
> legacy_layout = Layout.new
> legacy_layout[:source, :main, :java] = 'src'
> legacy_layout[:source, :test, :java] = 'test'
> define 'myproject', :layout => legacy_layout do
> puts "Path to: #{path_to(:source, :main, :java)}"
> puts "Compile target: #{compile.target}"
> puts "Compile sources: #{compile.sources}"
> package :jar
> end
> end
> The build fails with output:
> C:\Documents and Settings\neil\test>buildr
> (in C:/Documents and Settings/neil/test, development)
> Path to: C:/Documents and Settings/neil/test/myproject/src
> Compile target: C:/Documents and Settings/neil/test/myproject/target/main/classes
> Compile sources:
> Building app
> Testing app
> Testing app:myproject
> IOException: No file or directory with the name C:\Documents and Settings\neil\test\myproject\target\main\classes
> rake aborted!
> No file or directory with the name C:\Documents and Settings\neil\test\myproject\target\main\classes
> When you create the directories it complains about (strangely target/main/classes and target/test/classes), the build passes, but nothing gets compiled or tested.
> When the sources are in the default place, you get debugging output from the compile task like this:
> Path to: C:/Documents and Settings/neil/test/second/src/main/java
> Compile target: C:/Documents and Settings/neil/test/second/target/classes
> Compile sources: C:/Documents and Settings/neil/test/second/src/main/java
> Building app
> Compiling app:second
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.