mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-08-07 17:49:34 +00:00
-- tested AMP unpacking in windows -- for retest in *nix platforms git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@129 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
</description>
|
</description>
|
||||||
<url>${site.url}</url>
|
<url>${site.url}</url>
|
||||||
<prerequisites>
|
<prerequisites>
|
||||||
<maven>2.0.9</maven>
|
<maven>2.0.8</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
<system>GForge</system>
|
<system>GForge</system>
|
||||||
@@ -71,20 +71,6 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-changes-plugin</artifactId>
|
<artifactId>maven-changes-plugin</artifactId>
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>announcement-generate</goal>
|
|
||||||
</goals>
|
|
||||||
<id>announcement-generate</id>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>announcement-mail</goal>
|
|
||||||
</goals>
|
|
||||||
<id>announcement-mail</id>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<!-- Automatically notifies the list when release is done. Please supply username and password in the command line -->
|
<!-- Automatically notifies the list when release is done. Please supply username and password in the command line -->
|
||||||
<configuration>
|
<configuration>
|
||||||
<smtpHost>mail.sourcesense.com</smtpHost>
|
<smtpHost>mail.sourcesense.com</smtpHost>
|
||||||
|
@@ -7,8 +7,6 @@ import org.alfresco.maven.plugin.amp.Overlay;
|
|||||||
import org.codehaus.plexus.archiver.ArchiverException;
|
import org.codehaus.plexus.archiver.ArchiverException;
|
||||||
import org.codehaus.plexus.archiver.jar.ManifestException;
|
import org.codehaus.plexus.archiver.jar.ManifestException;
|
||||||
|
|
||||||
import sun.util.logging.resources.logging;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
|
@@ -35,6 +35,7 @@ public class AmpUnArchiver extends AbstractZipUnArchiver {
|
|||||||
|
|
||||||
private static String fileSeparator = System.getProperty("file.separator");
|
private static String fileSeparator = System.getProperty("file.separator");
|
||||||
|
|
||||||
|
|
||||||
public void setArchiveFilters( List filters )
|
public void setArchiveFilters( List filters )
|
||||||
{
|
{
|
||||||
filterSupport = new FilterSupport( filters, getLogger() );
|
filterSupport = new FilterSupport( filters, getLogger() );
|
||||||
@@ -126,7 +127,7 @@ public class AmpUnArchiver extends AbstractZipUnArchiver {
|
|||||||
|
|
||||||
|
|
||||||
private String getAmpMapping(String name) {
|
private String getAmpMapping(String name) {
|
||||||
if(name.startsWith("web"+ fileSeparator) && !name.startsWith("web"+ fileSeparator +"licenses"))
|
if(name.startsWith("web/") && !name.startsWith("web/licenses"))
|
||||||
{
|
{
|
||||||
return name.substring(4);
|
return name.substring(4);
|
||||||
}
|
}
|
||||||
@@ -136,7 +137,7 @@ public class AmpUnArchiver extends AbstractZipUnArchiver {
|
|||||||
{
|
{
|
||||||
String relativePath = "";
|
String relativePath = "";
|
||||||
|
|
||||||
if((name.startsWith("config"+fileSeparator)))
|
if((name.startsWith("config/")))
|
||||||
{
|
{
|
||||||
relativePath = name.substring(7);
|
relativePath = name.substring(7);
|
||||||
}
|
}
|
||||||
@@ -186,7 +187,11 @@ public class AmpUnArchiver extends AbstractZipUnArchiver {
|
|||||||
Date entryDate, boolean isDirectory )
|
Date entryDate, boolean isDirectory )
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
File f = FileUtils.resolveFile( dir, entryName );
|
File f = null;
|
||||||
|
if (entryName != null && !"".equals(entryName))
|
||||||
|
f = FileUtils.resolveFile( dir, entryName );
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user