Re: need help with maven helper

2012-09-04 Thread Olivier Sallou

Le 9/3/12 8:43 PM, Ludovic Claude a écrit :
> Hello,
>
> After reading again the original question, I think that it would be
> better to keep snappy-java as the artifact id, but pin the version
> number to 1.0.3. You would achieve it with this rule:
>
> org.xerial.snappy snappy-java jar s/1\.0\.3.*/1.0.3/ * *

We (debianmed) gonna keep artifact id different to avoid the "generic"
debian link to be linked to snappy-java.
snappy1.0.3-java must not conflict with snappy-java, we need to use this
specific version (old) for a package.

Your tip worked fine, thanks for your help.
>
> Ludovic
>
> On 09/01/2012 12:42 PM, Ludovic Claude wrote:
>> Hello,
>>
>> The packaging in Maven is jar, not bundle, so you need to use this value
>> to get a match:
>>
>> org.xerial.snappy s/snappy-java/snappy1.0.3-java/ jar s/.*/debian/ * *
>>
>> Ludovic
>>
>> On 08/31/2012 09:15 AM, olivier.sal...@codeless.fr wrote:
>>> Le 8/31/12 1:12 AM, Ludovic Claude a écrit :
 Hello,

 You should use this rule instead. It's a substitution you want to do,
 and the format use is similar to standard Unix sed command.

 org.xerial.snappy s/snappy-java/snappy1.0.3-java/ bundle s/.*/debian/ * *
>>> Unfortunatly, this does not work.
>>> My generated pom by maven helper is still like:
>>>
>>> ^I4.0.0
>>> ^Iorg.xerial.snappy
>>> ^Isnappy-java
>>> ^I1.0.3-rc3
>>> ^Ijar
>>> ^I
>>> ^ISnappy for Java
>>> ^ICompression/decompression library
>>> ^I
>>> ^I^IUTF-8
>>> ^I^Iorg.xerial.snappy snappy-java jar 1.0.3-rc3 *
>>> *
>>> ^I^I1.0.3-rc3
>>> ^I^Ilibsnappy1.0.3-java
>>> ^I
>>> 
>>>
>>> The artifact id is not modified. And files are installed in
>>> /usr/share/maven-repo/org/xerial/snappy/snappy-java/...
>>>
>>> Olivier
>>>
 Ludovic

 On 08/29/2012 11:07 AM, Olivier Sallou wrote:
> Hi,
> I need some help with maven helper.
> I need to rename the artifact id of the package library.
> In pom.xml, artifactId is snappy-java, and I need to rename it to
> snappy1.0.3-java (with version 1.0.3-rc3)
>
> What I expect is to get maven data in
> /usr/share/maven-repo/org/xerial/snappy/snappy1.0.3-java/
>
> However I fail to do so. I updated maven.rules (see below) but file name
> is correct only in /usj.
>
> I tried to patch the pom.xml to set correct artifactid but in this case,
> I have a build error when trying to unset patches as maven helper
> modifies the pom.xml
>
> Any hint on how I could do that?
>
> Thanks
>
> Olivier
>
> In my maven.rules:
> org.xerial.snappy snappy1.0.3-java bundle s/.*/debian/ * *
>
> Package content:
> drwxr-xr-x root/root 0 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/
> drwxr-xr-x root/root 0 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/
> -rw-r--r-- root/root  1287 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.pom
> -rw-r--r-- root/root 23781 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
> drwxr-xr-x root/root 0 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/
> -rw-r--r-- root/root  1284 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.pom
> drwxr-xr-x root/root 0 2012-08-29 09:43 ./usr/share/java/
> lrwxrwxrwx root/root 0 2012-08-29 09:43
> ./usr/share/maven-repo/org/xerial/snappy/snappy-java/debian/snappy-java-debian.jar
> -> ../1.0.3-rc3/snappy-java-1.0.3-rc3.jar
> lrwxrwxrwx root/root 0 2012-08-29 09:43
> ./usr/share/java/snappy1.0.3-java.jar ->
> ../maven-repo/org/xerial/snappy/snappy-java/1.0.3-rc3/snappy-java-1.0.3-rc3.jar
> 
>

 -- 
 gpg key id: 4096R/326D8438  (keyring.debian.org)
 Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>>>
>>
>

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438


-- 
To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/5045ad28.2060...@irisa.fr



Re: WiP on gradle 1.1

2012-09-04 Thread Miguel Landaeta
Hi Damien!

On Fri, Aug 31, 2012 at 7:32 AM, Damien Raude-Morvan
 wrote:
> I've spend some hours trying to update Gradle package to 1.1 release and I
> think I've now a pretty much working package (at least I can rebuild gradle
> with itself ;).
> I've pushed my changes to Alioth in a personnal repository (seems more
> secure given we are still in freeze for wheezy).

Thank you very much for working on this. I'll begin to test this new
upstream release in the next days.

Do you plan to upload to experimental if everything goes well?

> I'm looking for comments on :
> - packages split : is there too much binary packages from same source ?

I have the same question, maybe somebody else can comment on this?

> - boostrap / non-bootstrap build : gradle use itself as buildsystem and
> upstream doesn't provide (AFAIK) a bootstrap mechanism. So there is a
> debian/rules bootstrap target that need testing

> - build gradle 1.1 with gradle 1.0~m3 currently in archive : I've tried but
> it fails...

I don't think this is going to work, there are too many changes
introduced since that milestone and AFAICR that version of Gradle only
worked with Groovy 1.7.

I'd work directly on debian/rules bootstrap target. I have never seen
a Gradle non-bootstrap build, upstream only provides that wrapper that
just downloads a Gradle binary distribution. It is for that reason I
build a private .deb from upstream and from there I build a sane
Debian package that can be build with itself (like a compiler I guess,
but with the difference they care about backward compatibility).

> I'll publish some binary packages soon on my people.debian.org.

Cool, I'll wait for them or maybe I'll just try to rebuild everything
as testing. :)

Thanks again for working on this.

Cheers,

-- 
Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x6E608B637D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche


-- 
To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAEA1CYRh6mnhqtb3JU-=efegbnp5e9zpyx0_qdz20jph3u2...@mail.gmail.com