buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r718379 - in /incubator/buildr/trunk/doc/pages: extending.textile more_stuff.textile
Date Mon, 17 Nov 2008 21:01:55 GMT
Author: assaf
Date: Mon Nov 17 13:01:55 2008
New Revision: 718379

URL: http://svn.apache.org/viewvc?rev=718379&view=rev
Log:
A few examples where using _(:source, :main, etc) which makes sense for extensions (layout
independent), not so much when done in your project, so changed to more direct "src/main/etc".

Modified:
    incubator/buildr/trunk/doc/pages/extending.textile
    incubator/buildr/trunk/doc/pages/more_stuff.textile

Modified: incubator/buildr/trunk/doc/pages/extending.textile
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/pages/extending.textile?rev=718379&r1=718378&r2=718379&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/pages/extending.textile (original)
+++ incubator/buildr/trunk/doc/pages/extending.textile Mon Nov 17 13:01:55 2008
@@ -21,7 +21,7 @@
       :classpath=>REQUIRES.join(File::PATH_SEPARATOR)
     ant.mapping :schemaAction=>'build', :sqlFile=>task.name,
       :ignoreErrors=>true do
-        ant.config :propertiesFile=>_(:source, :main, :sql, 'derby.xml')
+        ant.config :propertiesFile=>_('src/main/sql/derby.xml')
         ant.classpath :path=>projects('store', 'utils' ).
           flatten.map(&:to_s).join(File::PATH_SEPARATOR)
     end
@@ -34,7 +34,7 @@
 {{{!ruby
 file('derby.sql') do
   mapping_tool :action=>'build', :sql=>task.name,
-    :properties=>_(:source, :main, :sql, 'derby.xml'),
+    :properties=>_('src/main/sql/derby.xml'),
     :classpath=>projects('store', 'utils')
 end
 }}}

Modified: incubator/buildr/trunk/doc/pages/more_stuff.textile
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/pages/more_stuff.textile?rev=718379&r1=718378&r2=718379&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/pages/more_stuff.textile (original)
+++ incubator/buildr/trunk/doc/pages/more_stuff.textile Mon Nov 17 13:01:55 2008
@@ -278,7 +278,7 @@
 def distro(project, id)
   project.package(:zip, :id=>id).path("#{id}-#{version}").tap do |zip|
     zip.include meta_inf + ['RELEASE_NOTES', 'README'].map { |f| path_to(f) }
-    zip.path('examples').include project.path_to(:source, :examples), :as=>'.'
+    zip.path('examples').include project.path_to('src/examples'), :as=>'.'
     zip.merge project('ode:tools-bin').package(:zip)
     zip.path('lib').include artifacts(COMMONS.logging, COMMONS.codec,
       COMMONS.httpclient, COMMONS.pool, COMMONS.collections, JAXEN, SAXON,



Mime
View raw message