Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1638 - in development/main: magic/core/src/main/net/dpml/magic/tasks transit

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1638 - in development/main: magic/core/src/main/net/dpml/magic/tasks transit
  • Date: Sun, 30 Jan 2005 14:58:00 +0100

Author: mcconnell
Date: Sun Jan 30 14:58:00 2005
New Revision: 1638

Modified:
development/main/magic/core/src/main/net/dpml/magic/tasks/DistTask.java
development/main/transit/module.xml
Log:
Add a compression selector to the dist task to kick in gzip compression of
the tar archive.

Modified:
development/main/magic/core/src/main/net/dpml/magic/tasks/DistTask.java
==============================================================================
--- development/main/magic/core/src/main/net/dpml/magic/tasks/DistTask.java
(original)
+++ development/main/magic/core/src/main/net/dpml/magic/tasks/DistTask.java
Sun Jan 30 14:58:00 2005
@@ -52,6 +52,25 @@

private TarTask m_tar;

+ /**
+ * Set compression method.
+ * Allowable values are
+ * <ul>
+ * <li> none - no compression
+ * <li> gzip - Gzip compression
+ * <li> bzip2 - Bzip2 compression
+ * </ul>
+ * @param mode the compression method.
+ */
+ public void setCompression( TarTask.TarCompressionMethod mode )
+ {
+ if( null == m_tar )
+ {
+ m_tar = createNewTarTask();
+ }
+ m_tar.setCompression( mode );
+ }
+
public void addFileset( FileSet set )
{
m_filesets.add( set );
@@ -66,7 +85,6 @@
{
if( null == m_tar )
{
- //m_tar = (Tar) getProject().createTask( "tar" );
m_tar = createNewTarTask();
}
return m_tar.createTarFileSet();

Modified: development/main/transit/module.xml
==============================================================================
--- development/main/transit/module.xml (original)
+++ development/main/transit/module.xml Sun Jan 30 14:58:00 2005
@@ -130,7 +130,7 @@
</target>

<target name="dist" depends="install,bundle">
- <x:dist>
+ <x:dist compression="gzip">
<fileset dir="${work}">
<exclude name="bin/**"/>
</fileset>



  • svn commit: r1638 - in development/main: magic/core/src/main/net/dpml/magic/tasks transit, mcconnell, 01/30/2005

Archive powered by MHonArc 2.6.24.

Top of Page