Building tool of new generationBuildR
BuildRExtension of RakeApache project
Step 1. Define projectdefine 'killer-app' do project.version= '0.1.0' end
Step 2. Add dependenciesrepositories.remote << 'http://www.ibiblio.org/maven2/'repositories.remote << 'http://maven.alfresco.com/nexus/content/groups/public/’LIBS = struct(          :alfresco_repo   => 'org.alfresco:alfresco-repository:jar:labs:2.1.0',          :alfresco_core   => 'org.alfresco:alfresco-core:jar:labs:2.1.0',          :alfresco_remote => 'org.alfresco:alfresco-remote-api:jar:labs:2.1.0',          :apache_collections => 'commons-collections:commons-collections:jar:3.1',          :apache_beanutils => 'commons-beanutils:commons-beanutils:jar:1.7.0',)
Step 3. Compiledefine 'al', :layout =>  ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBSend
Step 4. Packagedefine 'al', :layout =>  ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBS  package :jarend$ buildr package
Step 5. Directory structureab_layout = Layout.newab_layout[:source, :main, :java] = 'src'ab_layout[:source, :main, :resources] = 'resources'define 'al', :layout =>  ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBS  package :jarend
Step 6. Add custom task define 'al', :layout =>  ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBS  task :run => :compile do    system 'java -cp target/classes org.apache.killer.Main'  endend
Step 7. Testdefine 'al', :layout =>  ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBStest.with'commons-	ollections:commons- collections:jar:3.2' test.using:testngend
Step 8. Call java task :generate do   p 'calling ant..'Java.org.apache.tools.ant.Main.main( ['-file',            'build.xml', 'generate', '-Dserver=localhost'] )  end
LanguagesJavaScalaGroovyRuby
Other stuffInteractive Shell (JavaRebelsupport)IDE project file generationCobertura, Emma, Jdepend

Build r

  • 1.
    Building tool ofnew generationBuildR
  • 2.
  • 3.
    Step 1. Defineprojectdefine 'killer-app' do project.version= '0.1.0' end
  • 4.
    Step 2. Adddependenciesrepositories.remote << 'http://www.ibiblio.org/maven2/'repositories.remote << 'http://maven.alfresco.com/nexus/content/groups/public/’LIBS = struct( :alfresco_repo => 'org.alfresco:alfresco-repository:jar:labs:2.1.0', :alfresco_core => 'org.alfresco:alfresco-core:jar:labs:2.1.0', :alfresco_remote => 'org.alfresco:alfresco-remote-api:jar:labs:2.1.0', :apache_collections => 'commons-collections:commons-collections:jar:3.1', :apache_beanutils => 'commons-beanutils:commons-beanutils:jar:1.7.0',)
  • 5.
    Step 3. Compiledefine'al', :layout => ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBSend
  • 6.
    Step 4. Packagedefine'al', :layout => ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBS package :jarend$ buildr package
  • 7.
    Step 5. Directorystructureab_layout = Layout.newab_layout[:source, :main, :java] = 'src'ab_layout[:source, :main, :resources] = 'resources'define 'al', :layout => ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBS package :jarend
  • 8.
    Step 6. Addcustom task define 'al', :layout => ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBS task :run => :compile do system 'java -cp target/classes org.apache.killer.Main' endend
  • 9.
    Step 7. Testdefine'al', :layout => ab_layout doproject.version = 1.5compile.options.target = '1.5'compile.with LIBStest.with'commons- ollections:commons- collections:jar:3.2' test.using:testngend
  • 10.
    Step 8. Calljava task :generate do p 'calling ant..'Java.org.apache.tools.ant.Main.main( ['-file', 'build.xml', 'generate', '-Dserver=localhost'] ) end
  • 11.
  • 12.
    Other stuffInteractive Shell(JavaRebelsupport)IDE project file generationCobertura, Emma, Jdepend