[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Question about adding timestamp to zip file of archived product
|
Thanks Tonny, that did the trick. Not sure if it was defining the
rootFolder or putting the configuration before the executions.
I like this much better than calling ant!
Thanks
Tamar
On 4/22/13 2:31 PM, "Tonny Madsen" <tonny.madsen@xxxxxxxxx> wrote:
>I use the following configuration in my product plug-in. /Tonny
>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-p2-director-plugin</artifactId>
> <version>${tycho.version}</version>
> <configuration>
>
> <profile>profile</profile>
> <formats>
> <linux>tar.gz</linux>
> <!-- <macosx>tar.gz</macosx> -->
> </formats>
> <tarLongFileMode>gnu</tarLongFileMode>
> <products>
> <product>
> <id>....product</id>
> <rootFolder>${product.name}</rootFolder>
>
><archiveFileName>agetor5-wb-${product.version}-${build.number}</archiveFil
>eName>
> </product>
> </products>
> </configuration>
> <executions>
> <execution>
> <id>materialize-products</id>
> <goals>
> <goal>materialize-products</goal>
> </goals>
> </execution>
> <execution>
> <id>archive-products</id>
> <goals>
> <goal>archive-products</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
>
>
>On Mon, Apr 22, 2013 at 9:03 PM, Cohen, Tamar (ARC-TI)[Stinger
>Ghaffarian Technologies Inc. (SGT Inc.)] <tamar.e.cohen@xxxxxxxx>
>wrote:
>> Hi all
>>
>> Per this post:
>>
>>http://stackoverflow.com/questions/8583878/rename-zip-files-created-by-ty
>>ch
>> o-p2-director-plugin
>>
>> I should be able to add this to my pom:
>> <configuration>
>> <products>
>> <product>
>> <id>MY_PRODUCT_ID</id>
>>
>><archiveFileName>MyProduct-${project.version}</archiveFileName>
>> </product>
>> </products>
>> </configuration>
>>
>> But when I do, I get all sorts of other random errors, such as:
>> My.random.plugin:1.0.0-SNAPSHOT does not provide an artifact with
>> classifier 'null'
>>
>> When I take that bit out, it builds & archives just fine. I know I have
>> the correct product id (ie the UID from the product) and I've played
>> around with super simple archiveFilename names (ie TEST).
>>
>> Any suggestions? Otherwise I'm going to just use an ant script, which
>>is
>> way less elegant.
>>
>> Thanks
>>
>> Tamar
>>
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
>
>--
>Tonny Madsen
>
>My profiles:
>_______________________________________________
>tycho-user mailing list
>tycho-user@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/tycho-user