You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2009/11/19 23:42:57 UTC

svn commit: r882341 - /geronimo/server/trunk/framework/buildsupport/geronimo-osgi-plugin/src/main/java/org/apache/geronimo/mavenplugins/osgi/DisplayManifestMojo.java

Author: gawor
Date: Thu Nov 19 22:42:57 2009
New Revision: 882341

URL: http://svn.apache.org/viewvc?rev=882341&view=rev
Log:
update the plugin so that it can display manifest of a file specified on command line

Modified:
    geronimo/server/trunk/framework/buildsupport/geronimo-osgi-plugin/src/main/java/org/apache/geronimo/mavenplugins/osgi/DisplayManifestMojo.java

Modified: geronimo/server/trunk/framework/buildsupport/geronimo-osgi-plugin/src/main/java/org/apache/geronimo/mavenplugins/osgi/DisplayManifestMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/buildsupport/geronimo-osgi-plugin/src/main/java/org/apache/geronimo/mavenplugins/osgi/DisplayManifestMojo.java?rev=882341&r1=882340&r2=882341&view=diff
==============================================================================
--- geronimo/server/trunk/framework/buildsupport/geronimo-osgi-plugin/src/main/java/org/apache/geronimo/mavenplugins/osgi/DisplayManifestMojo.java (original)
+++ geronimo/server/trunk/framework/buildsupport/geronimo-osgi-plugin/src/main/java/org/apache/geronimo/mavenplugins/osgi/DisplayManifestMojo.java Thu Nov 19 22:42:57 2009
@@ -58,26 +58,26 @@
     /**
      * Output directory.
      *
-     * @parameter expression="${project.build.directory}/classes"
+     * @parameter expression="${target}" default-value="${project.build.directory}/classes"
      * @required
      */
-    protected File targetDir = null;
+    protected File target = null;
     
     public void execute() throws MojoExecutionException, MojoFailureException {
         
-        if (!targetDir.exists()) {
+        if (!target.exists()) {
             return;
         }
                 
         BundleResolver stateController = new BundleResolver(getLogger());
                 
         try {
-            stateController.addBundle(targetDir);
+            stateController.addBundle(target);
         } catch (BundleException e) {
             log.error(e.getMessage(), e);
         }        
         stateController.resolveState();
-        BundleDescription b = stateController.getBundleDescription(targetDir);                
+        BundleDescription b = stateController.getBundleDescription(target);                
         if (b != null) {
             displayImportExports(b);
         }