php-maven / maven-php-plugin

A maven plugin for dependency management and quality assurance for PHP projects.
http://www.php-maven.org/
Apache License 2.0
37 stars 29 forks source link

Feature request: Set phar metadata entries in pom #13

Closed jthomaskerr closed 12 years ago

jthomaskerr commented 12 years ago

I would like to be able to add metadata to a phar as part of a maven phase. This is a simple change to add an extra configuration entry to the build plugin, eg:

  <plugin>
    <groupId>org.phpmaven</groupId>
    <artifactId>maven-php-phar</artifactId>
    <configuration>
      <pharConfig>
        <stub>${stub}</stub>  
        <metadata>
          <readme>${readme}</readme>
        </metadata>          
      </pharConfig>
    </configuration>
  </plugin>

I have implemented these changes in the 2.0-SNAPSHOT branch (is this the appropriate place?) and attached a patch. it would be fantastic if this made it to the next release.

jthomaskerr commented 12 years ago

diff --git a/branches/2.0-SNAPSHOT/maven-php-phar/src/main/java/org/phpmaven/phar/IPharPackagingRequest.java b/branches/2.0-SNAPSHOT/maven-php-phar/src/main/java/org/phpmaven/phar/IPharPackagingRequest.java index b0e8ec9..aefba66 100644 --- a/branches/2.0-SNAPSHOT/maven-php-phar/src/main/java/org/phpmaven/phar/IPharPackagingRequest.java +++ b/branches/2.0-SNAPSHOT/maven-php-phar/src/main/java/org/phpmaven/phar/IPharPackagingRequest.java @@ -17,6 +17,7 @@ package org.phpmaven.phar;

import java.io.File; +import java.util.Map;

import org.phpmaven.core.IComponentFactory;

@@ -107,6 +108,14 @@ import org.phpmaven.core.IComponentFactory;

@@ -120,6 +123,11 @@ public class PharPackagingRequest implements IPharPackagingRequest { private boolean largeFile;

 /**
jthomaskerr commented 12 years ago

Hmm...perhaps that was not a good way to submit a patch....there doesn't appear to be an attachment option...

mepeisen commented 12 years ago

Can you attach the patch as text file?

jthomaskerr commented 12 years ago

Here (hopefully) is the attachment.

On 8 June 2012 01:33, Martin Eisengardt < reply@reply.github.com

wrote:

Can you attach the patch as text file?


Reply to this email directly or view it on GitHub:

https://github.com/php-maven/maven-php-plugin/issues/13#issuecomment-6179077

mepeisen commented 12 years ago

hmmm. do not see any attachement. :( So please add it to our trac: http://trac.php-maven.org/ticket/77 Or send it to me directly: martin.eisengardt@php-maven.org

Closing it know. Please watch the trac ticket for news.