mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-19 17:15:24 +00:00
-- fixing issue #19
-- applied patch provided at http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=19#c3 -- now src/main/resources/META-INF is only added to the JAR and not to the /config -- only (non problematic) side effect is that a META-INF (maven default manifest.mf is generated at the root of the amp, but not in /config so does not get applied) git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@390 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
parent
d6e8c57e45
commit
691a98030d
@ -53,7 +53,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
public abstract class AbstractAmpMojo extends AbstractMojo
|
public abstract class AbstractAmpMojo extends AbstractMojo
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -392,12 +392,12 @@ public abstract class AbstractAmpMojo extends AbstractMojo
|
|||||||
*
|
*
|
||||||
* @parameter alias="includes"
|
* @parameter alias="includes"
|
||||||
*/
|
*/
|
||||||
private String mAmpJarIncludes = "**";
|
private String mAmpJarIncludes = "**/*.class,META-INF/**";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The comma separated list of tokens to exclude from the AMP created JAR file. By default module configuration is left outside jars.
|
* The comma separated list of tokens to exclude from the AMP created JAR file
|
||||||
*
|
*
|
||||||
* @parameter alias="excludes" default-value="alfresco/module/**"
|
* @parameter alias="excludes" default-value=""
|
||||||
*/
|
*/
|
||||||
private String mAmpJarExcludes;
|
private String mAmpJarExcludes;
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ public class AmpMojo extends AbstractAmpMojo
|
|||||||
vArchiver.setOutputFile(pAmpFile);
|
vArchiver.setOutputFile(pAmpFile);
|
||||||
|
|
||||||
/* setup amp Archiver */
|
/* setup amp Archiver */
|
||||||
this.getAmpArchiver().addDirectory(this.getAmpDirectory(), this.getIncludes(), this.getExcludes());
|
this.getAmpArchiver().addDirectory(this.getAmpDirectory(), null, null);
|
||||||
|
|
||||||
// create archive
|
// create archive
|
||||||
vArchiver.createArchive(this.getProject(), archive );
|
vArchiver.createArchive(this.getProject(), archive );
|
||||||
|
@ -213,7 +213,7 @@ public class AmpProjectPackagingTask
|
|||||||
{
|
{
|
||||||
final PathSet sources = getFilesToIncludes( context.getAmpConfigDirectory(),
|
final PathSet sources = getFilesToIncludes( context.getAmpConfigDirectory(),
|
||||||
new String[0],
|
new String[0],
|
||||||
new String[] {"**/*.class"} );
|
new String[] {"**/*.class","META-INF/**"} );
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user