You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2003/11/27 07:49:53 UTC
cvs commit: maven-plugins/sea plugin.jelly
dion 2003/11/26 22:49:53
Modified: sea plugin.jelly
Log:
Removed unnecessary use of pom.getPluginContext
Revision Changes Path
1.5 +3 -3 maven-plugins/sea/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven-plugins/sea/plugin.jelly,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- plugin.jelly 12 Mar 2003 03:50:43 -0000 1.4
+++ plugin.jelly 27 Nov 2003 06:49:53 -0000 1.5
@@ -52,11 +52,11 @@
-->
<chmod
- file="${pom.getPluginContext('maven-sea-plugin').getVariable('plugin.dir')}/sea-tar"
+ file="${plugin.dir}/sea-tar"
perm="+x"/>
<exec
- executable="${pom.getPluginContext('maven-sea-plugin').getVariable('plugin.dir')}/sea-tar">
+ executable="${plugin.dir}/sea-tar">
<arg value="${seaName}"/>
<arg value="${sourceDirectory}"/>
<arg value="${maven.build.dir}"/>
@@ -66,7 +66,7 @@
<filter token="WORK_DIR" value="${pom.artifactId}-${pom.currentVersion}"/>
<copy
- file="${pom.getPluginContext('maven-sea-plugin').getVariable('plugin.resources')}/sea-header"
+ file="${plugin.resources}/sea-header"
tofile="${maven.build.dir}/project-sea-header"
overwrite="true"
filtering="true"
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: cvs commit: maven-plugins/sea plugin.jelly
Posted by Vincent Massol <vm...@pivolis.com>.
dIon,
Are you sure it is unnecessary? This is inside a tag and thus the tag
will be executed in *another* context. Thus if it needs to find
resources from the plugin dir, it will need to use the getPluginContext
I think... I had the same issue with some of my plugins in the past.
Thanks
-Vincent
> -----Original Message-----
> From: dion@apache.org [mailto:dion@apache.org]
> Sent: 27 November 2003 07:50
> To: maven-plugins-cvs@apache.org
> Subject: cvs commit: maven-plugins/sea plugin.jelly
>
> dion 2003/11/26 22:49:53
>
> Modified: sea plugin.jelly
> Log:
> Removed unnecessary use of pom.getPluginContext
>
> Revision Changes Path
> 1.5 +3 -3 maven-plugins/sea/plugin.jelly
>
> Index: plugin.jelly
> ===================================================================
> RCS file: /home/cvs/maven-plugins/sea/plugin.jelly,v
> retrieving revision 1.4
> retrieving revision 1.5
> diff -u -r1.4 -r1.5
> --- plugin.jelly 12 Mar 2003 03:50:43 -0000 1.4
> +++ plugin.jelly 27 Nov 2003 06:49:53 -0000 1.5
> @@ -52,11 +52,11 @@
> -->
>
> <chmod
> - file="${pom.getPluginContext('maven-sea-
> plugin').getVariable('plugin.dir')}/sea-tar"
> + file="${plugin.dir}/sea-tar"
> perm="+x"/>
>
> <exec
> - executable="${pom.getPluginContext('maven-sea-
> plugin').getVariable('plugin.dir')}/sea-tar">
> + executable="${plugin.dir}/sea-tar">
> <arg value="${seaName}"/>
> <arg value="${sourceDirectory}"/>
> <arg value="${maven.build.dir}"/>
> @@ -66,7 +66,7 @@
> <filter token="WORK_DIR" value="${pom.artifactId}-
> ${pom.currentVersion}"/>
>
> <copy
> - file="${pom.getPluginContext('maven-sea-
> plugin').getVariable('plugin.resources')}/sea-header"
> + file="${plugin.resources}/sea-header"
> tofile="${maven.build.dir}/project-sea-header"
> overwrite="true"
> filtering="true"
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org