maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john redden <jred...@matrix-consultants.com>
Subject Re: packaging php files in jar
Date Wed, 25 Aug 2010 20:06:56 GMT
Bingo!

Thanks,  I haven't had enough coffee ...

-John R.


On Wed, 2010-08-25 at 21:47 +0300, Manos Batsis wrote:
> On 08/25/2010 09:04 PM, john redden wrote:
> > Peer Maven users,
> >
> > I have a new project where the top scheduling half is a Java app that
> > executes php scripts on various criteria.  I want to package the php
> > files in the jar along with all the usual suspects.
> >
> > I can get my php files into the target directory, but can't seem to get
> > them automatically included in a jar file. The Java structure is as it
> > should be.
> >
> > The pom.xml is attached
> >
> 
> Where are your PHP files stored? I think they will automatically be 
> included in the jar if stored in src/main/resources, although I'd 
> probably put them in src/main/php and then
> 
>    <build>
>      ...
>      <resources>
>        <resource>
>          <directory> src/main/php</directory>
>          <includes>
>            <include>**/*.php</include>
>          </includes>
>        </resource>
>        ...
>      </resources>
>      ...
>    </build>
> 
> For the record, I've had too much coffee.
> 
> Manos
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message