buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r629229 - /incubator/buildr/trunk/doc/pages/packaging.textile
Date Tue, 19 Feb 2008 21:02:28 GMT
Author: assaf
Date: Tue Feb 19 13:02:27 2008
New Revision: 629229

URL: http://svn.apache.org/viewvc?rev=629229&view=rev
Log:
Added documentation for clean method

Modified:
    incubator/buildr/trunk/doc/pages/packaging.textile

Modified: incubator/buildr/trunk/doc/pages/packaging.textile
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/pages/packaging.textile?rev=629229&r1=629228&r2=629229&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/pages/packaging.textile (original)
+++ incubator/buildr/trunk/doc/pages/packaging.textile Tue Feb 19 13:02:27 2008
@@ -87,8 +87,12 @@
 Other than that, @package :jar@ includes the contents of the compiler's target
 directory and resources, which most often is exactly what you intend it to do.
 If you want to include other files in the JAR, instead or in addition, you can
-do so using the @include@ and @exclude@ methods.  We'll tell you more about
-them when we talk about "Packaging Zips":#packaging_zips.
+do so using the @include@ and @exclude@ methods.  If you do not want the target
+directory included in your JAR, simply call the @clean@ method on it.
+
+{{{!ruby
+package(:jar).clean.include( only_these_files )
+}}}
 
 
 h2. Packaging WARs
@@ -222,6 +226,10 @@
 @target/classes@, it's still working on the project definition, and has yet to
 compile anything.  Since @target/classes@ may be empty, may not even exist, it
 uses @:as=>'.'@.
+
+If you need to get rid of all the included files, call the @clean@ method.
+Some packaging types default to adding various files and directories, for
+example, JAR packaging will include all the compiled classes and resources.
 
 You can also merge two ZIP files together, expanding the content of one ZIP
 into the other.  For example:



Mime
View raw message