Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Development Java (http://www.linux-archive.org/fedora-development-java/)
-   -   Further improvements for Java macros - files section simplified (http://www.linux-archive.org/fedora-development-java/711247-further-improvements-java-macros-files-section-simplified.html)

Stanislav Ochotnicky 10-10-2012 04:51 PM

Further improvements for Java macros - files section simplified
 
While I was working on preparing a maven repository layout, I realized we can
generate file list when running add_maven_depmap. I've added support for this to
the master branch of [1]. Note that this is not in rawhide yet, but I'd like
people to try it out.

So what will add_maven_depmap do now?

- it will create file called maven-files-%{name}[-fragment-addition]
- when given '-m' it also creates Maven-like layout under /usr/share/maven-repository/

This means it creates file lists per subpackage. To see this in action I
prepared a sample diff for maven-surefire (it's a poster child, so normal diffs
will be smaller) [2]. The Maven repository as would be created right now is not
directly usable by upstream maven, mostly due to pom files having different
versions than advertised and similar things. But good news is...I believe we can
fix it, and without modifications to existing packages even :-)

To test it you need to checkout our javapackages.git and replace two files on
your system:
/etc/rpm/macros.fjava with macros.fjava from root of git
and
/usr/share/java-utils/maven_depmap.py with scripts/maven-depmap.py

I could probably create a test rpm if needed, but for that I'd likely just
commit to rawhide :-)

Hope you'll like further simplifications...

[1] http://git.fedorahosted.org/cgit/javapackages.git/
[2] http://fpaste.org/kn1G/

--
Stanislav Ochotnicky <sochotnicky@redhat.com>
Software Engineer - Base Operating Systems Brno

PGP: 7B087241
Red Hat Inc. http://cz.redhat.com
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel


All times are GMT. The time now is 12:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.