<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>users@buildr.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/buildr-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/buildr-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/buildr-users/</id>
<updated>2013-05-22T12:28:37Z</updated>
<entry>
<title>Re: Problems with merging</title>
<author><name>Ingo Schmidt &lt;antispam@der-ingo.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201305.mbox/%3c519C821B.7010607@der-ingo.de%3e"/>
<id>urn:uuid:%3c519C821B-7010607@der-ingo-de%3e</id>
<updated>2013-05-22T08:30:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Alex,&#010;&#010;&gt; I haven't had time to look into this today&#010;&#010;No problem, the buildfile had a bug anyway, here is the corrected version:&#010;define "merge-fail" do&#010;   project.version = "1.0.0"&#010;   define "webshop-war" do&#010;     images = zip(_(:target, &#010;"images.zip")).include(project.parent._("config","images", "**"))&#010;     war = package(:war)&#010;     war.enhance([images]) # workaround for BUILDR-605&#010;     war.path("images").merge(images)&#010;   end&#010;end&#010;&#010;I should say, that I ran the tests under Linux (Ubuntu 12.04 LTS) and &#010;with buildr version 1.4.7.&#010;Under Windows 7 with the same buildr version I could not reproduce the &#010;problem.&#010;&#010;&gt;   ... I suspect the&#010;&gt; non-deterministic behavior is due to putting things in a hash map.  Will&#010;&gt; see if we can fix or if there's a workaround.  Stay tuned.&#010;&#010;Yes, I think you are quite right with that. I did a trace of these &#010;builds and there is indeed some variation between them. If you want, I &#010;can paste the trace logs here, too. Maybe that already is enough for you &#010;to see what is going on.&#010;&#010;Cheers, Ingo =;-&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problems with merging</title>
<author><name>Alex Boisvert &lt;alex.boisvert@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201305.mbox/%3cCAHuk3y7bQL-K-=MBSUQ-19iCuek6V+PNPDL4skbJzK9qt8SsZg@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHuk3y7bQL-K-=MBSUQ-19iCuek6V+PNPDL4skbJzK9qt8SsZg@mail-gmail-com%3e</id>
<updated>2013-05-22T03:10:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ingo,&#010;&#010;I haven't had time to look into this today ... I suspect the&#010;non-deterministic behavior is due to putting things in a hash map.  Will&#010;see if we can fix or if there's a workaround.  Stay tuned.&#010;&#010;alex&#010;&#010;&#010;On Tue, May 21, 2013 at 5:25 AM, Ingo Schmidt &lt;antispam@der-ingo.de&gt; wrote:&#010;&#010;&gt; Hi,&#010;&gt;&#010;&gt; once again I have a problem with merging.&#010;&gt;&#010;&gt; Consider the following extremely simple project layout:&#010;&gt; /config/images/logo.png&#010;&gt; /webshop-war/src/main/webapp/**images/logo.png&#010;&gt;&#010;&gt; And the buildfile looks like this:&#010;&gt; define "merge-fail" do&#010;&gt;     project.version = "1.0.0"&#010;&gt;     define "webshop-war" do&#010;&gt;         images = zip(_(:target, images.zip)).include(project.**parent)&#010;&gt;         war = package(:war)&#010;&gt;         war.enhance([images]) # workaround for BUILDR-605&#010;&gt;         war.path("images").merge(**images)&#010;&gt;     end&#010;&gt; end&#010;&gt;&#010;&gt; When running "buildr clean package" I can observe the following behaviour:&#010;&gt; Sometimes the logo from the config folder is included in the WAR file,&#010;&gt; sometimes the one from webshop-war/images.&#010;&gt;&#010;&gt; I have not found out as to why this happens. Sometimes you get the same&#010;&gt; result 20 times in a row, so do run as often until you finally see this&#010;&gt; behaviour.&#010;&gt;&#010;&gt; Could someone explain me what this is?&#010;&gt;&#010;&gt; Any ideas for a workaround?&#010;&gt; What I would like to achieve is the following:&#010;&gt; If there is a picture in the config folder, use that one, otherwise use&#010;&gt; the default one inside webshop-war/images. What is the correct way of doing&#010;&gt; this? I am really stuck now...&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; Cheers, Ingo =;-&gt;&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Problems with merging</title>
<author><name>Ingo Schmidt &lt;antispam@der-ingo.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201305.mbox/%3c519B67C8.7030103@der-ingo.de%3e"/>
<id>urn:uuid:%3c519B67C8-7030103@der-ingo-de%3e</id>
<updated>2013-05-21T12:25:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,&#010;&#010;once again I have a problem with merging.&#010;&#010;Consider the following extremely simple project layout:&#010;/config/images/logo.png&#010;/webshop-war/src/main/webapp/images/logo.png&#010;&#010;And the buildfile looks like this:&#010;define "merge-fail" do&#010;     project.version = "1.0.0"&#010;     define "webshop-war" do&#010;         images = zip(_(:target, images.zip)).include(project.parent)&#010;         war = package(:war)&#010;         war.enhance([images]) # workaround for BUILDR-605&#010;         war.path("images").merge(images)&#010;     end&#010;end&#010;&#010;When running "buildr clean package" I can observe the following behaviour:&#010;Sometimes the logo from the config folder is included in the WAR file, &#010;sometimes the one from webshop-war/images.&#010;&#010;I have not found out as to why this happens. Sometimes you get the same &#010;result 20 times in a row, so do run as often until you finally see this &#010;behaviour.&#010;&#010;Could someone explain me what this is?&#010;&#010;Any ideas for a workaround?&#010;What I would like to achieve is the following:&#010;If there is a picture in the config folder, use that one, otherwise use &#010;the default one inside webshop-war/images. What is the correct way of &#010;doing this? I am really stuck now...&#010;&#010;&#010;&#010;Cheers, Ingo =;-&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ANNOUNCE] Apache Buildr 1.4.12 released</title>
<author><name>Peter Donald &lt;donaldp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201305.mbox/%3cCACiKNc5mn+-Vw8e2QU6j=x0xLkoTyhRPsEiwvhZe_hhqNBXPXQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc5mn+-Vw8e2QU6j=x0xLkoTyhRPsEiwvhZe_hhqNBXPXQ@mail-gmail-com%3e</id>
<updated>2013-05-08T13:06:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Apache Buildr is a build system for Java-based applications, including support&#010;for Scala, Groovy and a growing number of JVM languages and tools.  We wanted&#010;something that's simple and intuitive to use, so we only need to tell it what&#010;to do, and it takes care of the rest.  But also something we can easily extend&#010;for those one-off tasks, with a language that's a joy to use.&#010;&#010;&#010;New in this release:&#010;&#010;  * Added:  BUILDR-648 Add new package(:test_jar) packaging type.&#010;            Submitted by Mike Pettypiece.&#010;  * Fixed:  BUILDR-666 ZipFile.open modifies file regardless of usage.&#010;            Reported by Pepijn Van Eeckhoudt, fix by Alex Boisvert.&#010;  * Change: Moved to using TravisCI to test the Linux variants.&#010;  * Added:  Make the location of the wsdl in generated source configurable&#010;            in the wsgen addon.&#010;  * Added:  When generating the GWT facet for Intellij IDEA modules, use&#010;            the gwt-dev maven artifact dependency if present as the SDK,&#010;            falling back to the existing behaviour if not possible.&#010;  * Added:  Improved support for auto-detection of VCS dirs when creating&#010;            IDEA projects.&#010;  * Added:  Added support for SuperDevMode in gwt addon and upgraded to&#010;            GWT 2.5.1 by default.&#010;  * Change: BUILDR-664 Update Checkstyle addon so that extra_dependencies is&#010;            empty by default. Submitted by Dieter Vrancken.&#010;  * Fixed:  BUILDR-663 require 'buildr' fails for Ruby 2.0.0.&#010;  * Fixed:  BUILDR-665 Java artifacts in build.yaml breaking ArchiveTask.&#010;            Submitted by Antonio Pérez Barrero.&#010;  * Fixed:  BUILDR-662 reported time is much shorter than actual&#010;&#010;&#010;To learn more about Buildr and get started:&#010;http://buildr.apache.org/&#010;&#010;Thanks!&#010;The Apache Buildr Team&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proguard and Ant Task</title>
<author><name>Pepijn Van Eeckhoudt &lt;pepijn@vaneeckhoudt.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3c51791B37.9040005@vaneeckhoudt.net%3e"/>
<id>urn:uuid:%3c51791B37-9040005@vaneeckhoudt-net%3e</id>
<updated>2013-04-25T12:01:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Khristian,&#010;&#010;Here's a snippet from our buildfile. The main reason I added &#010;configuration via Ruby objects is to allow configuration to be generated &#010;in the build script. In the example below this is used to generate &#010;'keep' directives for every file in a specific directory.&#010;&#010;Pepijn&#010;&#010;jar = package(:type =&gt; :obfuscatedjar).tap do |p|&#010;   p.with :note =&gt; false,&#010;          :warn =&gt; false,&#010;          :renamesourcefileattribute =&gt; package_id,&#010;          :keepparameternames =&gt; true,&#010;          :configuration =&gt; _('baseconfig.pro'),&#010;          :printmapping =&gt; _(:target, "mapping"),&#010;          :printconfiguration =&gt; _(:target, package_id + "config")&#010;   p.dependencies.clear&#010;   p.use android.platform_jar&#010;&#010;   p.keep :attributes&#010;   p.keep :packagenames&#010;   # Generate a keep entry for each class in the public API tree&#010;   glob(src, "**/*.java").map { |f| f[0..-6].gsub('/', '.') }.each do &#010;|class_name|&#010;     [class_name, class_name + '$*'].each do |class_pattern|&#010;       p.keep({:access =&gt; 'public',&#010;               :name =&gt; class_pattern,&#010;               :field =&gt; {:access =&gt; 'public protected'},&#010;               :method =&gt; {:access =&gt; 'public protected'},&#010;               :constructor =&gt; {:access =&gt; 'public protected'}})&#010;     end&#010;   end&#010;&#010;   # Keep all classes with native methods.&#010;   p.keep(:classeswithmembers, {:type =&gt; 'class', :method =&gt; {:access =&gt; &#010;'native'}})&#010;&#010;   p.keep(:classmembers, {:type =&gt; 'enum', :method =&gt; {:access =&gt; &#010;'public static', :name =&gt; 'values'}})&#010;   p.keep(:classmembers, {:type =&gt; 'enum', :method =&gt; {:access =&gt; &#010;'public static', :name =&gt; 'valueOf'}})&#010;   p.keep(:classmembernames, {:type =&gt; 'class', :method =&gt; {:name =&gt; &#010;'class$*'}})&#010;end&#010;&#010;On 25-04-13 11:16, Khristian Schönrock wrote:&#010;&gt; Thanks for the tips, Pepijn and Alex!&#010;&gt;&#010;&gt; I didn't manage to get your Proguard task working as it is, so I made a few&#010;&gt; modifications until it worked:&#010;&gt; - Proguard version: updated to 4.8 (internal requirement);&#010;&gt; - Proguard dependency: changed groupId to net.sf.proguard;&#010;&gt; - rt.jar inclusion: substituted it with the version from Alex's script;&#010;&gt; - obfuscate() method: since I keep my Proguard configurations in a separate&#010;&gt; file, I only provided the :configuration option. The " {'keep' =&gt; @keep,&#010;&gt; 'whyareyoukeeping' =&gt; @whykeeping}..." part of the function didn't seem to&#010;&gt; like it so much, so I removed it. Could you perhaps provide an example of&#010;&gt; how you use your task?&#010;&gt;&#010;&gt; Other than that, it now behaves as expected, and my build runs all the way&#010;&gt; to the end.&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proguard and Ant Task</title>
<author><name>Khristian Schönrock &lt;smirnegger@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAHSH_VAkXHN4-v0pQmXYWZ86zOh4v69aWWNN7wwNqEkxXF-dMg@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHSH_VAkXHN4-v0pQmXYWZ86zOh4v69aWWNN7wwNqEkxXF-dMg@mail-gmail-com%3e</id>
<updated>2013-04-25T09:16:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks for the tips, Pepijn and Alex!&#010;&#010;I didn't manage to get your Proguard task working as it is, so I made a few&#010;modifications until it worked:&#010;- Proguard version: updated to 4.8 (internal requirement);&#010;- Proguard dependency: changed groupId to net.sf.proguard;&#010;- rt.jar inclusion: substituted it with the version from Alex's script;&#010;- obfuscate() method: since I keep my Proguard configurations in a separate&#010;file, I only provided the :configuration option. The " {'keep' =&gt; @keep,&#010;'whyareyoukeeping' =&gt; @whykeeping}..." part of the function didn't seem to&#010;like it so much, so I removed it. Could you perhaps provide an example of&#010;how you use your task?&#010;&#010;Other than that, it now behaves as expected, and my build runs all the way&#010;to the end.&#010;&#010;&#010;On Mon, Apr 15, 2013 at 6:20 PM, Alex Boisvert &lt;alex.boisvert@gmail.com&gt;wrote:&#010;&#010;&gt; Thanks for sharing Pepijn.   Your version has much better bones than the&#010;&gt; one I threw together quickly.&#010;&gt;&#010;&gt; Khristian: I suggest you try it and go/extend from there.&#010;&gt;&#010;&gt;&#010;&gt; On Mon, Apr 15, 2013 at 12:54 AM, Pepijn Van Eeckhoudt &lt;&#010;&gt; pepijn@vaneeckhoudt.net&gt; wrote:&#010;&gt;&#010;&gt; &gt; Hi Khristian,&#010;&gt; &gt;&#010;&gt; &gt; I've made a copy of the Proguard extension I use at work available at&#010;&gt; &gt; https://gist.github.com/**pepijnve/5386437&lt;&#010;&gt; https://gist.github.com/pepijnve/5386437&gt;&#010;&gt; &gt;&#010;&gt; &gt; It's essentially a wrapper for the Proguard Ant task. I've added support&#010;&gt; &gt; for the options that I actually needed. Might not be 100% complete but&#010;&gt; all&#010;&gt; &gt; the essential parts are there.&#010;&gt; &gt;&#010;&gt; &gt; I haven't experienced any issues related to the task calling exit.&#010;&gt; Perhaps&#010;&gt; &gt; exit is not invoked when using Proguard via the Ant task rather then via&#010;&gt; &gt; its own main method.&#010;&gt; &gt;&#010;&gt; &gt; Regards,&#010;&gt; &gt;&#010;&gt; &gt; Pepijn&#010;&gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt; On 12-04-13 14:27, Khristian Schönrock wrote:&#010;&gt; &gt;&#010;&gt; &gt;&gt; Hi Alex,&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; thanks for your help! I got my proguard task going as I wanted after a&#010;&gt; few&#010;&gt; &gt;&gt; modifications to your script:&#010;&gt; https://gist.github.com/**derkosak/5371630&lt;&#010;&gt; https://gist.github.com/derkosak/5371630&gt;&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; However, I seem to have stumbled upon the "task calls exit(), buildr&#010;&gt; exits&#010;&gt; &gt;&gt; as well" issue. How can I work around this? I've read that forking the&#010;&gt; &gt;&gt; call&#010;&gt; &gt;&gt; does the trick, but couldn't figure out how it is done.&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; TIA,&#010;&gt; &gt;&gt; Khristian&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; On Sat, Apr 6, 2013 at 12:28 AM, Alex Boisvert &lt;alex.boisvert@gmail.com&#010;&gt; &gt;*&#010;&gt; &gt;&gt; *wrote:&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt;  Hi Khristian,&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; I hacked something quickly together here:&#010;&gt; &gt;&gt;&gt; https://gist.github.com/**aboisvert/5323180&lt;&#010;&gt; https://gist.github.com/aboisvert/5323180&gt;&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; I didn't use the Ant task since I thought it was too much trouble&#010;&gt; &gt;&gt;&gt; compared&#010;&gt; &gt;&gt;&gt; to using the Proguard 'main class' and passing argument directly to it.&#010;&gt; &gt;&gt;&gt; Note that this is just a prototype that doesn't support many of the&#010;&gt; &gt;&gt;&gt; proguard options .. basically the bare minimum to get you going.&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; Hope this helps,&#010;&gt; &gt;&gt;&gt; alex&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; On Fri, Apr 5, 2013 at 7:47 AM, Khristian Schönrock &lt;&#010;&gt; &gt;&gt;&gt; smirnegger@gmail.com&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; wrote:&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;  Hello everyone,&#010;&gt; &gt;&gt;&gt;&gt; I'm trying to add a proguard task to my project. So far I've not found&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; any&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; sort of Proguard-addon for Buildr, so I tried using the Ant task.&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; I tried to mimic the OpenJPA task, and ended up with the following&#010;&gt; code:&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; REQUIRES = [ ...bunch of libraries... ]&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; ant('proguard') do |ant|&#010;&gt; &gt;&gt;&gt;&gt;      ant.taskdef :name=&gt;'proguard',&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; :classname=&gt;'proguard.ant.**ProGuardTask',&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt;        :classpath=&gt;REQUIRES.join(**File::PATH_SEPARATOR)&#010;&gt; &gt;&gt;&gt;&gt;      ant.proguard :configuration=&gt;_('../build/co**nfiguration.pro&lt;&#010;&gt; http://configuration.pro&gt;'),&#010;&gt; &gt;&gt;&gt;&gt; #&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; config&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; file&#010;&gt; &gt;&gt;&gt;&gt;        :injars=&gt;project('my_project') # snag here&#010;&gt; &gt;&gt;&gt;&gt; end&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; And so I am left with a bunch of intertwining questions:&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; - Since I'm defining the task in a project that should be processed&#010;by&#010;&gt; &gt;&gt;&gt;&gt; proguard, I'm not sure how I should add the project to the classpath.&#010;&gt; &gt;&gt;&gt;&gt; - Moving the proguard task to some other project ("distribution", for&#010;&gt; &gt;&gt;&gt;&gt; example) solves the problem, but proguard complains that I need to&#010;&gt; &gt;&gt;&gt;&gt; define&#010;&gt; &gt;&gt;&gt;&gt; the "-injars" parameter, which I tried unsuccessfully with the :injars&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; code&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; above.&#010;&gt; &gt;&gt;&gt;&gt; - Since "-injars" is part of the configuration, in the Proguard Ant&#010;&gt; task&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; it&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; can be defined either in the configuration file ("configuration.pro&#010;&gt; "),&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt; or&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; in the body of the &lt;configuration&gt; tag. Supposing the :configuration&#010;&gt; key&#010;&gt; &gt;&gt;&gt;&gt; maps to this tag, can I add this "tag content"?&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; How do I best configure this?&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt; Thanks in advance,&#010;&gt; &gt;&gt;&gt;&gt; Khristian&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&gt;&#010;&gt; &gt;&gt;&gt;&#010;&gt; &gt;&gt;&#010;&gt; &gt;&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Using Buildr in other applications</title>
<author><name>Khristian Schönrock &lt;smirnegger@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAHSH_VA-N+eqrMU07fSUAEs=pL2OqmUaeB+d2O5z-vdU839yVw@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHSH_VA-N+eqrMU07fSUAEs=pL2OqmUaeB+d2O5z-vdU839yVw@mail-gmail-com%3e</id>
<updated>2013-04-24T15:27:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Peter! I added the @rakefile and repositories lines, and now it&#010;works like a charm. The current version can be found here:&#010;https://gist.github.com/derkosak/5434126&#010;&#010;&#010;On Sat, Apr 20, 2013 at 1:07 AM, Peter Donald &lt;peter@realityforge.org&gt;wrote:&#010;&#010;&gt; Hi,&#010;&gt;&#010;&gt; On Fri, Apr 19, 2013 at 6:41 PM, Khristian Schönrock&#010;&gt; &lt;smirnegger@gmail.com&gt; wrote:&#010;&gt; &gt; I wrote a small ruby app that works as a "artifact repository" of sorts,&#010;&gt; &gt; and allows me to query my local repository and/or to download artifacts&#010;&gt; on&#010;&gt; &gt; demand. I'm using Buildr to access and manipulate the artifacts.&#010;&gt; &gt; I've got the "query" part down, but the "download on demand" bit is&#010;&gt; giving&#010;&gt; &gt; me a bit of trouble. What I tried is:&#010;&gt; &gt;&#010;&gt; &gt; -----------------&#010;&gt; &gt; require 'rubygems'&#010;&gt; &gt; require 'buildr'&#010;&gt; &gt;&#010;&gt; &gt; def search_for_artifact(spec)&#010;&gt; &gt;   art=Buildr.artifact(spec)&#010;&gt; &gt;   art.invoke unless art==nil&#010;&gt; &gt; end&#010;&gt; &gt; -----------------&#010;&gt; &gt;&#010;&gt; &gt; This works when the artifact is already present, but fails when it must&#010;&gt; be&#010;&gt; &gt; downloaded with "Internal Error: attempting to access local setting&#010;&gt; before&#010;&gt; &gt; buildfile located". How can I use this functionality without a buildfile?&#010;&gt;&#010;&gt; The ugliest way is to set a private variable inside the buildr&#010;&gt; application so it works around the lack of a build file. An example of&#010;&gt; this in action is at;&#010;&gt;&#010;&gt; https://gist.github.com/realityforge/5423856&#010;&gt;&#010;&gt; --&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Peter Donald&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Using Buildr in other applications</title>
<author><name>Peter Donald &lt;peter@realityforge.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCACiKNc7CXME2nRQc96+sJaOC2HwMr=BKvA_p-eTUuOLG8+tJOQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc7CXME2nRQc96+sJaOC2HwMr=BKvA_p-eTUuOLG8+tJOQ@mail-gmail-com%3e</id>
<updated>2013-04-19T23:07:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,&#010;&#010;On Fri, Apr 19, 2013 at 6:41 PM, Khristian Schönrock&#010;&lt;smirnegger@gmail.com&gt; wrote:&#010;&gt; I wrote a small ruby app that works as a "artifact repository" of sorts,&#010;&gt; and allows me to query my local repository and/or to download artifacts on&#010;&gt; demand. I'm using Buildr to access and manipulate the artifacts.&#010;&gt; I've got the "query" part down, but the "download on demand" bit is giving&#010;&gt; me a bit of trouble. What I tried is:&#010;&gt;&#010;&gt; -----------------&#010;&gt; require 'rubygems'&#010;&gt; require 'buildr'&#010;&gt;&#010;&gt; def search_for_artifact(spec)&#010;&gt;   art=Buildr.artifact(spec)&#010;&gt;   art.invoke unless art==nil&#010;&gt; end&#010;&gt; -----------------&#010;&gt;&#010;&gt; This works when the artifact is already present, but fails when it must be&#010;&gt; downloaded with "Internal Error: attempting to access local setting before&#010;&gt; buildfile located". How can I use this functionality without a buildfile?&#010;&#010;The ugliest way is to set a private variable inside the buildr&#010;application so it works around the lack of a build file. An example of&#010;this in action is at;&#010;&#010;https://gist.github.com/realityforge/5423856&#010;&#010;-- &#010;Cheers,&#010;&#010;Peter Donald&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Using Buildr in other applications</title>
<author><name>Khristian Schönrock &lt;smirnegger@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAHSH_VAxAmGkFoPOw1-EBm04HmUDViXtgNciCqrHUM8QSdpvBA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHSH_VAxAmGkFoPOw1-EBm04HmUDViXtgNciCqrHUM8QSdpvBA@mail-gmail-com%3e</id>
<updated>2013-04-19T08:41:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,&#010;I wrote a small ruby app that works as a "artifact repository" of sorts,&#010;and allows me to query my local repository and/or to download artifacts on&#010;demand. I'm using Buildr to access and manipulate the artifacts.&#010;I've got the "query" part down, but the "download on demand" bit is giving&#010;me a bit of trouble. What I tried is:&#010;&#010;-----------------&#010;require 'rubygems'&#010;require 'buildr'&#010;&#010;def search_for_artifact(spec)&#010;  art=Buildr.artifact(spec)&#010;  art.invoke unless art==nil&#010;end&#010;-----------------&#010;&#010;This works when the artifact is already present, but fails when it must be&#010;downloaded with "Internal Error: attempting to access local setting before&#010;buildfile located". How can I use this functionality without a buildfile?&#010;&#010;Thanks,&#010;Khristian&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stop testing on failure</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA_HqNn=N8x0mfW=xHh4g0q+BhDWPRsQRSRqeXkTEUKrVw@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA_HqNn=N8x0mfW=xHh4g0q+BhDWPRsQRSRqeXkTEUKrVw@mail-gmail-com%3e</id>
<updated>2013-04-17T23:03:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yep thats what I'm asking, thanks&#010;On Apr 18, 2013 6:05 AM, "Peter Donald" &lt;peter@realityforge.org&gt; wrote:&#010;&#010;&gt; Hi,&#010;&gt;&#010;&gt; I am not sure what you are asking. Are you asking whether you can fast&#010;&gt; fail the tests for a project, the first time a test in the project&#010;&gt; fails? If that is what you are asking, I am not sure. Buildr uses the&#010;&gt; underlying junit task from ant and as far as I can tell , that is not&#010;&gt; a feature supported by that tool?&#010;&gt;&#010;&gt; [1] http://ant.apache.org/manual/Tasks/junit.html&#010;&gt;&#010;&gt; On Wed, Apr 17, 2013 at 3:10 PM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; wrote:&#010;&gt; &gt; With fail_on_failure it looks like you can control whether buildr will&#010;&gt; fail&#010;&gt; &gt; a test task upon a junit test failure.  But is there a way to stop the&#010;&gt; &gt; execution of further test suites upon a test failure?&#010;&gt; &gt;&#010;&gt; &gt; hoogs&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; --&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Peter Donald&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stop testing on failure</title>
<author><name>Peter Donald &lt;peter@realityforge.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCACiKNc7pTZNoK8ij=idjOeQu+-c2UoAXWP-Qr6CBKO_scyAJfw@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc7pTZNoK8ij=idjOeQu+-c2UoAXWP-Qr6CBKO_scyAJfw@mail-gmail-com%3e</id>
<updated>2013-04-17T22:05:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,&#010;&#010;I am not sure what you are asking. Are you asking whether you can fast&#010;fail the tests for a project, the first time a test in the project&#010;fails? If that is what you are asking, I am not sure. Buildr uses the&#010;underlying junit task from ant and as far as I can tell , that is not&#010;a feature supported by that tool?&#010;&#010;[1] http://ant.apache.org/manual/Tasks/junit.html&#010;&#010;On Wed, Apr 17, 2013 at 3:10 PM, Jason Hoogland &lt;hoogland@gmail.com&gt; wrote:&#010;&gt; With fail_on_failure it looks like you can control whether buildr will fail&#010;&gt; a test task upon a junit test failure.  But is there a way to stop the&#010;&gt; execution of further test suites upon a test failure?&#010;&gt;&#010;&gt; hoogs&#010;&#010;&#010;&#010;-- &#010;Cheers,&#010;&#010;Peter Donald&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>stop testing on failure</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA9daa-7bVwDBhY4Cz=x=WEC=o2cGkm5HTqZxO_YpPkw-w@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA9daa-7bVwDBhY4Cz=x=WEC=o2cGkm5HTqZxO_YpPkw-w@mail-gmail-com%3e</id>
<updated>2013-04-17T05:10:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
With fail_on_failure it looks like you can control whether buildr will fail&#010;a test task upon a junit test failure.  But is there a way to stop the&#010;execution of further test suites upon a test failure?&#010;&#010;hoogs&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: switching junit standard output buffering off?</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA_c1SAWq7KFD8CApNT0duaqPUp=e4NAep0bV0w_zTtZDQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA_c1SAWq7KFD8CApNT0duaqPUp=e4NAep0bV0w_zTtZDQ@mail-gmail-com%3e</id>
<updated>2013-04-17T05:08:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Peter,&#010;&#010;Yes have observed, but I removed the problem by replacing System.exit&#010;statements in the java with exceptions.  But thanks for the tip.&#010;&#010;hoogs&#010;&#010;&#010;On Wed, Apr 17, 2013 at 11:27 AM, Peter Donald &lt;peter@realityforge.org&gt;wrote:&#010;&#010;&gt; On Tue, Apr 16, 2013 at 11:59 PM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; wrote:&#010;&gt; &gt; If the jvm during junit tests forks abnormally, standard output won;t be&#010;&gt; &gt; shown becaused its buffered.  Apparently this can be switched off (e.g.&#010;&gt; &gt; http://comments.gmane.org/gmane.comp.apache.maven.issues/28714,&#010;&gt; &gt;&#010;&gt; http://grokbase.com/t/hadoop/zookeeper-user/10b4h71k09/junit-tests-do-not-produce-logs-if-the-jvm-crashes&#010;&gt; &gt; ).&#010;&gt; &gt;&#010;&gt; &gt; Any ideas on whether/how this might be done with buildr?&#010;&gt;&#010;&gt; Have you observed buffering in Buildr? I would not have thought this&#010;&gt; is a problem with the Junit integration built in as it uses the&#010;&gt; default reports and not any of the ones the buffering. Even if that&#010;&gt; was the cvase you can pass system properties and jvm parameters to the&#010;&gt; test JVM that will control this behavior.&#010;&gt;&#010;&gt; test.using :properties =&gt; {"myvar" =&gt; "x"}, :java_args =&gt; :{"myvar" =&gt; "x"}&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; --&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Peter Donald&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: switching junit standard output buffering off?</title>
<author><name>Peter Donald &lt;peter@realityforge.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCACiKNc63=hvmmdfTViatD0La9wpKHrth8YECDBWC4JnWp6i-gA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc63=hvmmdfTViatD0La9wpKHrth8YECDBWC4JnWp6i-gA@mail-gmail-com%3e</id>
<updated>2013-04-17T03:27:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Apr 16, 2013 at 11:59 PM, Jason Hoogland &lt;hoogland@gmail.com&gt; wrote:&#010;&gt; If the jvm during junit tests forks abnormally, standard output won;t be&#010;&gt; shown becaused its buffered.  Apparently this can be switched off (e.g.&#010;&gt; http://comments.gmane.org/gmane.comp.apache.maven.issues/28714,&#010;&gt; http://grokbase.com/t/hadoop/zookeeper-user/10b4h71k09/junit-tests-do-not-produce-logs-if-the-jvm-crashes&#010;&gt; ).&#010;&gt;&#010;&gt; Any ideas on whether/how this might be done with buildr?&#010;&#010;Have you observed buffering in Buildr? I would not have thought this&#010;is a problem with the Junit integration built in as it uses the&#010;default reports and not any of the ones the buffering. Even if that&#010;was the cvase you can pass system properties and jvm parameters to the&#010;test JVM that will control this behavior.&#010;&#010;test.using :properties =&gt; {"myvar" =&gt; "x"}, :java_args =&gt; :{"myvar" =&gt; "x"}&#010;&#010;&#010;&#010;-- &#010;Cheers,&#010;&#010;Peter Donald&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>switching junit standard output buffering off?</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA_wY3W9BQvfaypi9y+ao3rrDf8LYrMWJUqdEJYkORx2jQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA_wY3W9BQvfaypi9y+ao3rrDf8LYrMWJUqdEJYkORx2jQ@mail-gmail-com%3e</id>
<updated>2013-04-16T13:59:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
If the jvm during junit tests forks abnormally, standard output won;t be&#010;shown becaused its buffered.  Apparently this can be switched off (e.g.&#010;http://comments.gmane.org/gmane.comp.apache.maven.issues/28714,&#010;http://grokbase.com/t/hadoop/zookeeper-user/10b4h71k09/junit-tests-do-not-produce-logs-if-the-jvm-crashes&#010;).&#010;&#010;Any ideas on whether/how this might be done with buildr?&#010;&#010;hoogs&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proguard and Ant Task</title>
<author><name>Alex Boisvert &lt;alex.boisvert@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAHuk3y4Zci5NwgQec0t6bLucSRpES+atmeibZeqkiZY-bJugFA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHuk3y4Zci5NwgQec0t6bLucSRpES+atmeibZeqkiZY-bJugFA@mail-gmail-com%3e</id>
<updated>2013-04-15T16:20:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks for sharing Pepijn.   Your version has much better bones than the&#010;one I threw together quickly.&#010;&#010;Khristian: I suggest you try it and go/extend from there.&#010;&#010;&#010;On Mon, Apr 15, 2013 at 12:54 AM, Pepijn Van Eeckhoudt &lt;&#010;pepijn@vaneeckhoudt.net&gt; wrote:&#010;&#010;&gt; Hi Khristian,&#010;&gt;&#010;&gt; I've made a copy of the Proguard extension I use at work available at&#010;&gt; https://gist.github.com/**pepijnve/5386437&lt;https://gist.github.com/pepijnve/5386437&gt;&#010;&gt;&#010;&gt; It's essentially a wrapper for the Proguard Ant task. I've added support&#010;&gt; for the options that I actually needed. Might not be 100% complete but all&#010;&gt; the essential parts are there.&#010;&gt;&#010;&gt; I haven't experienced any issues related to the task calling exit. Perhaps&#010;&gt; exit is not invoked when using Proguard via the Ant task rather then via&#010;&gt; its own main method.&#010;&gt;&#010;&gt; Regards,&#010;&gt;&#010;&gt; Pepijn&#010;&gt;&#010;&gt;&#010;&gt; On 12-04-13 14:27, Khristian Schönrock wrote:&#010;&gt;&#010;&gt;&gt; Hi Alex,&#010;&gt;&gt;&#010;&gt;&gt; thanks for your help! I got my proguard task going as I wanted after a few&#010;&gt;&gt; modifications to your script: https://gist.github.com/**derkosak/5371630&lt;https://gist.github.com/derkosak/5371630&gt;&#010;&gt;&gt;&#010;&gt;&gt; However, I seem to have stumbled upon the "task calls exit(), buildr exits&#010;&gt;&gt; as well" issue. How can I work around this? I've read that forking the&#010;&gt;&gt; call&#010;&gt;&gt; does the trick, but couldn't figure out how it is done.&#010;&gt;&gt;&#010;&gt;&gt; TIA,&#010;&gt;&gt; Khristian&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; On Sat, Apr 6, 2013 at 12:28 AM, Alex Boisvert &lt;alex.boisvert@gmail.com&gt;*&#010;&gt;&gt; *wrote:&#010;&gt;&gt;&#010;&gt;&gt;  Hi Khristian,&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; I hacked something quickly together here:&#010;&gt;&gt;&gt; https://gist.github.com/**aboisvert/5323180&lt;https://gist.github.com/aboisvert/5323180&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; I didn't use the Ant task since I thought it was too much trouble&#010;&gt;&gt;&gt; compared&#010;&gt;&gt;&gt; to using the Proguard 'main class' and passing argument directly to it.&#010;&gt;&gt;&gt; Note that this is just a prototype that doesn't support many of the&#010;&gt;&gt;&gt; proguard options .. basically the bare minimum to get you going.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Hope this helps,&#010;&gt;&gt;&gt; alex&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; On Fri, Apr 5, 2013 at 7:47 AM, Khristian Schönrock &lt;&#010;&gt;&gt;&gt; smirnegger@gmail.com&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; wrote:&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;  Hello everyone,&#010;&gt;&gt;&gt;&gt; I'm trying to add a proguard task to my project. So far I've not found&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt; any&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; sort of Proguard-addon for Buildr, so I tried using the Ant task.&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; I tried to mimic the OpenJPA task, and ended up with the following code:&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; REQUIRES = [ ...bunch of libraries... ]&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; ant('proguard') do |ant|&#010;&gt;&gt;&gt;&gt;      ant.taskdef :name=&gt;'proguard',&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt; :classname=&gt;'proguard.ant.**ProGuardTask',&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;        :classpath=&gt;REQUIRES.join(**File::PATH_SEPARATOR)&#010;&gt;&gt;&gt;&gt;      ant.proguard :configuration=&gt;_('../build/co**nfiguration.pro&lt;http://configuration.pro&gt;'),&#010;&gt;&gt;&gt;&gt; #&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt; config&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; file&#010;&gt;&gt;&gt;&gt;        :injars=&gt;project('my_project') # snag here&#010;&gt;&gt;&gt;&gt; end&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; And so I am left with a bunch of intertwining questions:&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; - Since I'm defining the task in a project that should be processed by&#010;&gt;&gt;&gt;&gt; proguard, I'm not sure how I should add the project to the classpath.&#010;&gt;&gt;&gt;&gt; - Moving the proguard task to some other project ("distribution", for&#010;&gt;&gt;&gt;&gt; example) solves the problem, but proguard complains that I need to&#010;&gt;&gt;&gt;&gt; define&#010;&gt;&gt;&gt;&gt; the "-injars" parameter, which I tried unsuccessfully with the :injars&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt; code&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; above.&#010;&gt;&gt;&gt;&gt; - Since "-injars" is part of the configuration, in the Proguard Ant task&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt; it&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; can be defined either in the configuration file ("configuration.pro"),&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt; or&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; in the body of the &lt;configuration&gt; tag. Supposing the :configuration&#010;key&#010;&gt;&gt;&gt;&gt; maps to this tag, can I add this "tag content"?&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; How do I best configure this?&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; Thanks in advance,&#010;&gt;&gt;&gt;&gt; Khristian&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA8cwzSynXd2njdi=xkwzeh65nEPTKQAtZHZx3K+3tE0hg@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA8cwzSynXd2njdi=xkwzeh65nEPTKQAtZHZx3K+3tE0hg@mail-gmail-com%3e</id>
<updated>2013-04-15T13:44:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Kevin,&#010;&#010;The final solution I came up with uses OneJar.  There is a modest startup&#010;delay of the order of 1s, but no significant runtime penalty.  Packaging&#010;takes about 1.5s versus about 30s for flattening the jars out into&#010;classes.  I'm not sure why that is, but its vastly better for the code dev&#010;cycle.&#010;&#010;MYJAR = '/path/to/myjar.jar'&#010;ONEJAR = 'lib/one-jar-boot-0.97.jar'&#010;&#010;DEPS =&#010;[&#010;  ARGS4J,&#010;  JASYPT,&#010;  WEB,&#010;  ORIENTDB&#010;].flatten&#010;&#010;repositories.remote &lt;&lt; 'http://repo1.maven.org/maven2'&#010;&#010;define 'MyProject' do&#010;&#010;  project.version = VERSION_NUMBER&#010;  project.group = 'mygroup'&#010;  compile.options.target = '1.7'&#010;&#010;  define 'server' do&#010;    compile.with DEPS, MYJAR&#010;    package(:jar)&#010;  end&#010;&#010;  package(:jar).path("lib").tap do |p|&#010;    p.include DEPS.each {|d| p.include artifact(d).to_s}&#010;    p.include MYJAR&#010;  end&#010;  package(:jar).path("main").tap do |p|&#010;    p.include project('server').package(:jar)&#010;  end&#010;  package(:jar).merge(ONEJAR)&#010;  package(:jar).with :manifest=&gt;manifest.merge(&#010;    'One-Jar-Main-Class'=&gt;'com.myproject.control.Start',&#010;    'Main-Class'=&gt;'com.simontuffs.onejar.Boot'&#010;  )&#010;&#010;end&#010;&#010;Thanks everyone for your help.  Can I just make a comment about the Buildr&#010;API documentation, which I'm guessing is a generic Ruby doc format?  I just&#010;don't get it at all, I've relied totally on the Quick Start on the webpage,&#010;and these few examples.  I have no Ruby background, but know Python (and&#010;the C languages).  For example, if I want to know what methods are&#010;associated with "package" I just can't figure that out.  Maybe its me.&#010;hoogs&#010;&#010;&#010;On Mon, Apr 15, 2013 at 9:19 PM, Kevin Smith &lt;kevin.s@qualitycode.com&gt;wrote:&#010;&#010;&gt; On 04/15/2013 06:49 AM, Jason Hoogland wrote:&#010;&gt;&#010;&gt;&gt; Sorry, and any ideas on dealing with manifest.mf overwrite?&#010;&gt;&gt;&#010;&gt;&#010;&gt; Here is a fragment from our buildr script:&#010;&gt;&#010;&gt;    p.with :manifest=&gt;{'Main-Class'=&gt;'**org.martus.client.swingui.**&#010;&gt; Martus'}&#010;&gt;      p.include(File.join(_('source'**, 'test', 'java'), '**/*.mlp'))&#010;&gt; p.merge(project('martus-jar-**verifier').package(:jar)).**&#010;&gt; exclude('META-INF/MANIFEST.MF'**)&#010;&gt;&#010;&gt; It merges in a jar build by a different sub-script, omitting that other&#010;&gt; manifest.&#010;&gt;&#010;&gt; Kevin&#010;&gt;&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Kevin Smith &lt;kevin.s@qualitycode.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3c516BFE59.30006@qualitycode.com%3e"/>
<id>urn:uuid:%3c516BFE59-30006@qualitycode-com%3e</id>
<updated>2013-04-15T13:19:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 04/15/2013 06:49 AM, Jason Hoogland wrote:&#010;&gt; Sorry, and any ideas on dealing with manifest.mf overwrite?&#010;&#010;Here is a fragment from our buildr script:&#010;&#010;    p.with :manifest=&gt;{'Main-Class'=&gt;'org.martus.client.swingui.Martus'}&#010;      p.include(File.join(_('source', 'test', 'java'), '**/*.mlp'))&#010;p.merge(project('martus-jar-verifier').package(:jar)).exclude('META-INF/MANIFEST.MF')&#010;&#010;It merges in a jar build by a different sub-script, omitting that other &#010;manifest.&#010;&#010;Kevin&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA_fLdkqd44_ycpoLmdnwT00D2SNHnRqbcj9=W=SC+H_FA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA_fLdkqd44_ycpoLmdnwT00D2SNHnRqbcj9=W=SC+H_FA@mail-gmail-com%3e</id>
<updated>2013-04-15T10:49:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sorry, and any ideas on dealing with manifest.mf overwrite?&#010;On Apr 15, 2013 6:27 PM, "Peter Donald" &lt;peter@realityforge.org&gt; wrote:&#010;&#010;&gt; On Mon, Apr 15, 2013 at 6:41 PM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; wrote:&#010;&gt;&#010;&gt; &gt; Peter,&#010;&gt; &gt;&#010;&gt; &gt; Going back to your original suggestion (the second option) e.g.&#010;&gt; &gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19, how&#010;&gt; &gt; would&#010;&gt; &gt; you merge the contents of a local jar file?&#010;&gt; &gt;&#010;&gt;&#010;&gt; Add a line such as&#010;&gt;&#010;&gt; jar.merge('../some/local/library.jar')&#010;&gt;&#010;&gt;&#010;&gt; &gt;&#010;&gt; &gt; hoogs&#010;&gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt; On Sun, Apr 14, 2013 at 9:58 AM, Peter Donald &lt;peter@realityforge.org&#010;&gt; &gt; &gt;wrote:&#010;&gt; &gt;&#010;&gt; &gt; &gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; &gt; &gt; wrote:&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt; &gt; &gt; &gt; 1. compile my src code into classes&#010;&gt; &gt; &gt; &gt; 2. packages them into a jar&#010;&gt; &gt; &gt; &gt; 3. adds the dependency jars to this jar&#010;&gt; &gt; &gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt; &gt; &gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt; &gt; &gt; &gt;&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; I am not sure I exactly follow. Do you want to include the jars as&#010;&gt; nested&#010;&gt; &gt; &gt; jars or just include the files form the jar in the final jar?&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; I usually attempt the second option and use code that looks similar to&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; to achieve this goal.&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; Peter Donald&#010;&gt; &gt; &gt;&#010;&gt; &gt;&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; --&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Peter Donald&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Peter Donald &lt;peter@realityforge.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCACiKNc4XMyxCN--Yu67hEKyAiFDiuWqe-zny58PwV8EDGGAuRA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc4XMyxCN--Yu67hEKyAiFDiuWqe-zny58PwV8EDGGAuRA@mail-gmail-com%3e</id>
<updated>2013-04-15T10:26:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Mon, Apr 15, 2013 at 6:41 PM, Jason Hoogland &lt;hoogland@gmail.com&gt; wrote:&#010;&#010;&gt; Peter,&#010;&gt;&#010;&gt; Going back to your original suggestion (the second option) e.g.&#010;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19, how&#010;&gt; would&#010;&gt; you merge the contents of a local jar file?&#010;&gt;&#010;&#010;Add a line such as&#010;&#010;jar.merge('../some/local/library.jar')&#010;&#010;&#010;&gt;&#010;&gt; hoogs&#010;&gt;&#010;&gt;&#010;&gt; On Sun, Apr 14, 2013 at 9:58 AM, Peter Donald &lt;peter@realityforge.org&#010;&gt; &gt;wrote:&#010;&gt;&#010;&gt; &gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; &gt; wrote:&#010;&gt; &gt;&#010;&gt; &gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt; &gt; &gt; 1. compile my src code into classes&#010;&gt; &gt; &gt; 2. packages them into a jar&#010;&gt; &gt; &gt; 3. adds the dependency jars to this jar&#010;&gt; &gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt; &gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt; &gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt; I am not sure I exactly follow. Do you want to include the jars as nested&#010;&gt; &gt; jars or just include the files form the jar in the final jar?&#010;&gt; &gt;&#010;&gt; &gt; I usually attempt the second option and use code that looks similar to&#010;&gt; &gt;&#010;&gt; &gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt; &gt;&#010;&gt; &gt; to achieve this goal.&#010;&gt; &gt;&#010;&gt; &gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt; &gt;&#010;&gt; &gt; Peter Donald&#010;&gt; &gt;&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;Cheers,&#010;&#010;Peter Donald&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA8raZyOAdKbKfO3ZkRuCKcw1xu5r6qW5=OdPczqHd9zAA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA8raZyOAdKbKfO3ZkRuCKcw1xu5r6qW5=OdPczqHd9zAA@mail-gmail-com%3e</id>
<updated>2013-04-15T08:41:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Peter,&#010;&#010;Going back to your original suggestion (the second option) e.g.&#010;https://github.com/realityforge/spydle/blob/master/buildfile#L19, how would&#010;you merge the contents of a local jar file?&#010;&#010;hoogs&#010;&#010;&#010;On Sun, Apr 14, 2013 at 9:58 AM, Peter Donald &lt;peter@realityforge.org&gt;wrote:&#010;&#010;&gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; wrote:&#010;&gt;&#010;&gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt; &gt; 1. compile my src code into classes&#010;&gt; &gt; 2. packages them into a jar&#010;&gt; &gt; 3. adds the dependency jars to this jar&#010;&gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt; &gt;&#010;&gt;&#010;&gt; I am not sure I exactly follow. Do you want to include the jars as nested&#010;&gt; jars or just include the files form the jar in the final jar?&#010;&gt;&#010;&gt; I usually attempt the second option and use code that looks similar to&#010;&gt;&#010;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt;&#010;&gt; to achieve this goal.&#010;&gt;&#010;&gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt;&#010;&gt; Peter Donald&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proguard and Ant Task</title>
<author><name>Pepijn Van Eeckhoudt &lt;pepijn@vaneeckhoudt.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3c516BB21F.1040506@vaneeckhoudt.net%3e"/>
<id>urn:uuid:%3c516BB21F-1040506@vaneeckhoudt-net%3e</id>
<updated>2013-04-15T07:54:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Khristian,&#010;&#010;I've made a copy of the Proguard extension I use at work available at &#010;https://gist.github.com/pepijnve/5386437&#010;&#010;It's essentially a wrapper for the Proguard Ant task. I've added support &#010;for the options that I actually needed. Might not be 100% complete but &#010;all the essential parts are there.&#010;&#010;I haven't experienced any issues related to the task calling exit. &#010;Perhaps exit is not invoked when using Proguard via the Ant task rather &#010;then via its own main method.&#010;&#010;Regards,&#010;&#010;Pepijn&#010;&#010;On 12-04-13 14:27, Khristian Schönrock wrote:&#010;&gt; Hi Alex,&#010;&gt;&#010;&gt; thanks for your help! I got my proguard task going as I wanted after a few&#010;&gt; modifications to your script: https://gist.github.com/derkosak/5371630&#010;&gt;&#010;&gt; However, I seem to have stumbled upon the "task calls exit(), buildr exits&#010;&gt; as well" issue. How can I work around this? I've read that forking the call&#010;&gt; does the trick, but couldn't figure out how it is done.&#010;&gt;&#010;&gt; TIA,&#010;&gt; Khristian&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; On Sat, Apr 6, 2013 at 12:28 AM, Alex Boisvert &lt;alex.boisvert@gmail.com&gt;wrote:&#010;&gt;&#010;&gt;&gt; Hi Khristian,&#010;&gt;&gt;&#010;&gt;&gt; I hacked something quickly together here:&#010;&gt;&gt; https://gist.github.com/aboisvert/5323180&#010;&gt;&gt;&#010;&gt;&gt; I didn't use the Ant task since I thought it was too much trouble compared&#010;&gt;&gt; to using the Proguard 'main class' and passing argument directly to it.&#010;&gt;&gt; Note that this is just a prototype that doesn't support many of the&#010;&gt;&gt; proguard options .. basically the bare minimum to get you going.&#010;&gt;&gt;&#010;&gt;&gt; Hope this helps,&#010;&gt;&gt; alex&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; On Fri, Apr 5, 2013 at 7:47 AM, Khristian Schönrock &lt;smirnegger@gmail.com&#010;&gt;&gt;&gt; wrote:&#010;&gt;&gt;&#010;&gt;&gt;&gt; Hello everyone,&#010;&gt;&gt;&gt; I'm trying to add a proguard task to my project. So far I've not found&#010;&gt;&gt; any&#010;&gt;&gt;&gt; sort of Proguard-addon for Buildr, so I tried using the Ant task.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; I tried to mimic the OpenJPA task, and ended up with the following code:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; REQUIRES = [ ...bunch of libraries... ]&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; ant('proguard') do |ant|&#010;&gt;&gt;&gt;      ant.taskdef :name=&gt;'proguard',&#010;&gt;&gt; :classname=&gt;'proguard.ant.ProGuardTask',&#010;&gt;&gt;&gt;        :classpath=&gt;REQUIRES.join(File::PATH_SEPARATOR)&#010;&gt;&gt;&gt;      ant.proguard :configuration=&gt;_('../build/configuration.pro'), #&#010;&gt;&gt; config&#010;&gt;&gt;&gt; file&#010;&gt;&gt;&gt;        :injars=&gt;project('my_project') # snag here&#010;&gt;&gt;&gt; end&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; And so I am left with a bunch of intertwining questions:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; - Since I'm defining the task in a project that should be processed by&#010;&gt;&gt;&gt; proguard, I'm not sure how I should add the project to the classpath.&#010;&gt;&gt;&gt; - Moving the proguard task to some other project ("distribution", for&#010;&gt;&gt;&gt; example) solves the problem, but proguard complains that I need to define&#010;&gt;&gt;&gt; the "-injars" parameter, which I tried unsuccessfully with the :injars&#010;&gt;&gt; code&#010;&gt;&gt;&gt; above.&#010;&gt;&gt;&gt; - Since "-injars" is part of the configuration, in the Proguard Ant task&#010;&gt;&gt; it&#010;&gt;&gt;&gt; can be defined either in the configuration file ("configuration.pro"),&#010;&gt;&gt; or&#010;&gt;&gt;&gt; in the body of the &lt;configuration&gt; tag. Supposing the :configuration key&#010;&gt;&gt;&gt; maps to this tag, can I add this "tag content"?&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; How do I best configure this?&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Thanks in advance,&#010;&gt;&gt;&gt; Khristian&#010;&gt;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA9JO4hF_wjb2477NoKHMKO88=S0a_L_pgO2DhNm4-4ceQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA9JO4hF_wjb2477NoKHMKO88=S0a_L_pgO2DhNm4-4ceQ@mail-gmail-com%3e</id>
<updated>2013-04-15T04:35:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Peter,&#010;&#010;Works marvellously, and doing it this way is substantially faster to&#010;package with builder, from 20-30s on my machine down to 1.5s.&#010;&#010;You've got an unmatched [, and the Class-Path only works for me if the&#010;comma join is replaced by a space.&#010;&#010;hoogs&#010;&#010;&#010;On Sun, Apr 14, 2013 at 6:47 PM, Peter Donald &lt;peter@realityforge.org&gt;wrote:&#010;&#010;&gt; On Sun, Apr 14, 2013 at 8:31 PM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; wrote:&#010;&gt;&#010;&gt; &gt; One more question: if the remote artifacts are specified in an array, how&#010;&gt; &gt; would the "jar.include" change? I expect I'll be ok with figuring out&#010;&gt; &gt; building the Class-Path string in a loop but if you have a suggestion for&#010;&gt; &gt; that, it would be great.&#010;&gt; &gt;&#010;&gt;&#010;&gt; Updated the example at&#010;&gt;&#010;&gt; https://gist.github.com/realityforge/5381737&#010;&gt;&#010;&gt; HTH&#010;&gt;&#010;&gt;&#010;&gt; &gt; hoogs&#010;&gt; &gt; On Apr 14, 2013 3:36 PM, "Jason Hoogland" &lt;hoogland@gmail.com&gt; wrote:&#010;&gt; &gt;&#010;&gt; &gt; &gt; Peter,&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; Awesome, thank you SO much, looks like the trick. How do you find all&#010;&gt; &gt; &gt; these buildfiles?&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; I think i love buildr, bye bye ant, xml!&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; hoogs&#010;&gt; &gt; &gt; On Apr 14, 2013 3:02 PM, "Peter Donald" &lt;peter@realityforge.org&gt;&#010;&gt; wrote:&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt;&gt; Hi,&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; Now I understand. An example for this is at&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; https://gist.github.com/realityforge/5381737&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; On Sun, Apr 14, 2013 at 2:00 PM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; &gt; &gt;&gt; wrote:&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; To break this down to simpler questions:&#010;&gt; &gt; &gt;&gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt; 1. How to access a subset of the jar files buildr remotely&#010;&gt; downloaded?&#010;&gt; &gt; &gt;&gt; &gt; 2. How to include this subset as jars, without modification, within&#010;&gt; a&#010;&gt; &gt; &gt;&gt; new&#010;&gt; &gt; &gt;&gt; &gt; jar package?&#010;&gt; &gt; &gt;&gt; &gt; 3. How to create a Class-Path string, properly formatted, that&#010;&gt; &gt; includes&#010;&gt; &gt; &gt;&gt; &gt; this subset of jars, for use in the final package manifest? (Ruby&#010;&gt; &gt; &gt;&gt; newbie)&#010;&gt; &gt; &gt;&gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt; hoogs&#010;&gt; &gt; &gt;&gt; &gt; On Apr 14, 2013 10:17 AM, "Jason Hoogland" &lt;hoogland@gmail.com&gt;&#010;&gt; &gt; wrote:&#010;&gt; &gt; &gt;&gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt; Thanks Peter,&#010;&gt; &gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt; I am having trouble finding useful buildfile examples so will&#010;&gt; check&#010;&gt; &gt; &gt;&gt; this&#010;&gt; &gt; &gt;&gt; &gt; &gt; out.&#010;&gt; &gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt; I am trying to do the former, nesting the dep jars inside the&#010;&gt; final&#010;&gt; &gt; &gt;&gt; jar.&#010;&gt; &gt; &gt;&gt; &gt; &gt; Then I have only one manifest file to worry about. I find it&#010;a lot&#010;&gt; &gt; &gt;&gt; &gt; cleaner.&#010;&gt; &gt; &gt;&gt; &gt; &gt; Currently my buildfile is doing what you do, just mash all the&#010;dep&#010;&gt; &gt; &gt;&gt; files&#010;&gt; &gt; &gt;&gt; &gt; &gt; together into the jar, the problem i've got there is that the&#010;&gt; &gt; &gt;&gt; MANIFEST.MF&#010;&gt; &gt; &gt;&gt; &gt; &gt; files seem to overwrite each other, but maybe that link will&#010;help.&#010;&gt; &gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt; hoogs&#010;&gt; &gt; &gt;&gt; &gt; &gt; On Apr 14, 2013 9:59 AM, "Peter Donald" &lt;peter@realityforge.org&gt;&#010;&gt; &gt; &gt;&gt; wrote:&#010;&gt; &gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;&#010;&gt; &gt; hoogland@gmail.com&#010;&gt; &gt; &gt;&gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; wrote:&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; 1. compile my src code into classes&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; 2. packages them into a jar&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; 3. adds the dependency jars to this jar&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes&#010;to&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted,&#010;e.g.:&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; I am not sure I exactly follow. Do you want to include the&#010;jars&#010;&gt; as&#010;&gt; &gt; &gt;&gt; &gt; nested&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; jars or just include the files form the jar in the final&#010;jar?&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; I usually attempt the second option and use code that looks&#010;&gt; similar&#010;&gt; &gt; &gt;&gt; to&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; to achieve this goal.&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt; Peter Donald&#010;&gt; &gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt; &gt;&gt; &gt;&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; --&#010;&gt; &gt; &gt;&gt; Cheers,&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; Peter Donald&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&#010;&gt; &gt;&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; --&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Peter Donald&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Real world build files and stand-alone jar</title>
<author><name>&quot;Jesus M. Rodriguez&quot; &lt;jmrodri@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAOJvaH2qW2Cpsq1o+gtTKSty7aixf3ycki5a4aS40xhUDSwNGQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAOJvaH2qW2Cpsq1o+gtTKSty7aixf3ycki5a4aS40xhUDSwNGQ@mail-gmail-com%3e</id>
<updated>2013-04-15T03:17:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
here's ours :)&#010;&#010;https://github.com/candlepin/candlepin/blob/master/buildfile&#010;&#010;sincerely,&#010;jesus rodriguez&#010;On Apr 14, 2013 11:33 AM, "Alex Boisvert" &lt;alex.boisvert@gmail.com&gt; wrote:&#010;&#010;&gt; On Sun, Apr 14, 2013 at 3:53 AM, Peter Donald &lt;peter@realityforge.org&#010;&gt; &gt;wrote:&#010;&gt;&#010;&gt; &gt; &gt; A collection of real world build files would help a lot, especially&#010;&gt; when&#010;&gt; &gt; &gt; one is new to buildr.&#010;&gt; &gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt; At one stage there was a git repository somewhere that included a&#010;&gt; &gt; collection of buildfiles.  Not sure where it was exactly ...&#010;&gt; &gt;&#010;&gt;&#010;&gt; https://github.com/phoet/buildr-examples&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Real world build files and stand-alone jar</title>
<author><name>Alex Boisvert &lt;alex.boisvert@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAHuk3y6qfS=b4npFwrqG_jut63utj0+nQN1Gh6pw-=zXAC+ZFA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHuk3y6qfS=b4npFwrqG_jut63utj0+nQN1Gh6pw-=zXAC+ZFA@mail-gmail-com%3e</id>
<updated>2013-04-14T15:33:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sun, Apr 14, 2013 at 3:53 AM, Peter Donald &lt;peter@realityforge.org&gt;wrote:&#010;&#010;&gt; &gt; A collection of real world build files would help a lot, especially when&#010;&gt; &gt; one is new to buildr.&#010;&gt; &gt;&#010;&gt;&#010;&gt; At one stage there was a git repository somewhere that included a&#010;&gt; collection of buildfiles.  Not sure where it was exactly ...&#010;&gt;&#010;&#010;https://github.com/phoet/buildr-examples&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Real world build files and stand-alone jar</title>
<author><name>Peter Donald &lt;peter@realityforge.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCACiKNc7XMGVwnSja6H-EYk7PGj8+_49k4E5egpqmFR68Ytsz8g@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc7XMGVwnSja6H-EYk7PGj8+_49k4E5egpqmFR68Ytsz8g@mail-gmail-com%3e</id>
<updated>2013-04-14T10:53:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,&#010;&#010;On Sun, Apr 14, 2013 at 6:16 PM, Magnus Melander &lt;magnus@huggtand.com&gt;wrote:&#010;&#010;&gt; I think the question about where to find real world examples of build&#010;&gt; files is a really valid question.&#010;&gt; I find the buildr documentation great except for that part.&#010;&gt;&#010;&#010;That's true.&#010;&#010;&#010;&gt; A collection of real world build files would help a lot, especially when&#010;&gt; one is new to buildr.&#010;&gt;&#010;&#010;At one stage there was a git repository somewhere that included a&#010;collection of buildfiles.  Not sure where it was exactly ...&#010;&#010;&#010;&gt;&#010;&gt; Btw, since I started to use buildr, I have never looked back.&#010;&gt;&#010;&#010;Me too ;)&#010;&#010;-- &#010;Cheers,&#010;&#010;Peter Donald&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Peter Donald &lt;peter@realityforge.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCACiKNc6TeBuzQYnkDxH=Pyi5zsp+JY+LsTsShujakX3skW1qbQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc6TeBuzQYnkDxH=Pyi5zsp+JY+LsTsShujakX3skW1qbQ@mail-gmail-com%3e</id>
<updated>2013-04-14T10:47:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sun, Apr 14, 2013 at 8:31 PM, Jason Hoogland &lt;hoogland@gmail.com&gt; wrote:&#010;&#010;&gt; One more question: if the remote artifacts are specified in an array, how&#010;&gt; would the "jar.include" change? I expect I'll be ok with figuring out&#010;&gt; building the Class-Path string in a loop but if you have a suggestion for&#010;&gt; that, it would be great.&#010;&gt;&#010;&#010;Updated the example at&#010;&#010;https://gist.github.com/realityforge/5381737&#010;&#010;HTH&#010;&#010;&#010;&gt; hoogs&#010;&gt; On Apr 14, 2013 3:36 PM, "Jason Hoogland" &lt;hoogland@gmail.com&gt; wrote:&#010;&gt;&#010;&gt; &gt; Peter,&#010;&gt; &gt;&#010;&gt; &gt; Awesome, thank you SO much, looks like the trick. How do you find all&#010;&gt; &gt; these buildfiles?&#010;&gt; &gt;&#010;&gt; &gt; I think i love buildr, bye bye ant, xml!&#010;&gt; &gt;&#010;&gt; &gt; hoogs&#010;&gt; &gt; On Apr 14, 2013 3:02 PM, "Peter Donald" &lt;peter@realityforge.org&gt; wrote:&#010;&gt; &gt;&#010;&gt; &gt;&gt; Hi,&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; Now I understand. An example for this is at&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; https://gist.github.com/realityforge/5381737&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; On Sun, Apr 14, 2013 at 2:00 PM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; &gt;&gt; wrote:&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; To break this down to simpler questions:&#010;&gt; &gt;&gt; &gt;&#010;&gt; &gt;&gt; &gt; 1. How to access a subset of the jar files buildr remotely downloaded?&#010;&gt; &gt;&gt; &gt; 2. How to include this subset as jars, without modification, within a&#010;&gt; &gt;&gt; new&#010;&gt; &gt;&gt; &gt; jar package?&#010;&gt; &gt;&gt; &gt; 3. How to create a Class-Path string, properly formatted, that&#010;&gt; includes&#010;&gt; &gt;&gt; &gt; this subset of jars, for use in the final package manifest? (Ruby&#010;&gt; &gt;&gt; newbie)&#010;&gt; &gt;&gt; &gt;&#010;&gt; &gt;&gt; &gt; hoogs&#010;&gt; &gt;&gt; &gt; On Apr 14, 2013 10:17 AM, "Jason Hoogland" &lt;hoogland@gmail.com&gt;&#010;&gt; wrote:&#010;&gt; &gt;&gt; &gt;&#010;&gt; &gt;&gt; &gt; &gt; Thanks Peter,&#010;&gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt;&gt; &gt; &gt; I am having trouble finding useful buildfile examples so will check&#010;&gt; &gt;&gt; this&#010;&gt; &gt;&gt; &gt; &gt; out.&#010;&gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt;&gt; &gt; &gt; I am trying to do the former, nesting the dep jars inside the final&#010;&gt; &gt;&gt; jar.&#010;&gt; &gt;&gt; &gt; &gt; Then I have only one manifest file to worry about. I find it a lot&#010;&gt; &gt;&gt; &gt; cleaner.&#010;&gt; &gt;&gt; &gt; &gt; Currently my buildfile is doing what you do, just mash all the dep&#010;&gt; &gt;&gt; files&#010;&gt; &gt;&gt; &gt; &gt; together into the jar, the problem i've got there is that the&#010;&gt; &gt;&gt; MANIFEST.MF&#010;&gt; &gt;&gt; &gt; &gt; files seem to overwrite each other, but maybe that link will help.&#010;&gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt;&gt; &gt; &gt; hoogs&#010;&gt; &gt;&gt; &gt; &gt; On Apr 14, 2013 9:59 AM, "Peter Donald" &lt;peter@realityforge.org&gt;&#010;&gt; &gt;&gt; wrote:&#010;&gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;&#010;&gt; hoogland@gmail.com&#010;&gt; &gt;&gt; &gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt; wrote:&#010;&gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt; &gt;&gt; &gt; &gt;&gt; &gt; 1. compile my src code into classes&#010;&gt; &gt;&gt; &gt; &gt;&gt; &gt; 2. packages them into a jar&#010;&gt; &gt;&gt; &gt; &gt;&gt; &gt; 3. adds the dependency jars to this jar&#010;&gt; &gt;&gt; &gt; &gt;&gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt; &gt;&gt; &gt; &gt;&gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt; &gt;&gt; &gt; &gt;&gt; &gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt; I am not sure I exactly follow. Do you want to include the jars&#010;as&#010;&gt; &gt;&gt; &gt; nested&#010;&gt; &gt;&gt; &gt; &gt;&gt; jars or just include the files form the jar in the final jar?&#010;&gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt; I usually attempt the second option and use code that looks similar&#010;&gt; &gt;&gt; to&#010;&gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt; to achieve this goal.&#010;&gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; &gt;&gt; Peter Donald&#010;&gt; &gt;&gt; &gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; &gt;&#010;&gt; &gt;&gt; &gt;&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; --&#010;&gt; &gt;&gt; Cheers,&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; Peter Donald&#010;&gt; &gt;&gt;&#010;&gt; &gt;&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;Cheers,&#010;&#010;Peter Donald&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA_RhYujSBkKhXsQdDwUQ365=M7rJea=goRVCcjeLb4fow@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA_RhYujSBkKhXsQdDwUQ365=M7rJea=goRVCcjeLb4fow@mail-gmail-com%3e</id>
<updated>2013-04-14T10:31:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
One more question: if the remote artifacts are specified in an array, how&#010;would the "jar.include" change? I expect I'll be ok with figuring out&#010;building the Class-Path string in a loop but if you have a suggestion for&#010;that, it would be great.&#010;hoogs&#010;On Apr 14, 2013 3:36 PM, "Jason Hoogland" &lt;hoogland@gmail.com&gt; wrote:&#010;&#010;&gt; Peter,&#010;&gt;&#010;&gt; Awesome, thank you SO much, looks like the trick. How do you find all&#010;&gt; these buildfiles?&#010;&gt;&#010;&gt; I think i love buildr, bye bye ant, xml!&#010;&gt;&#010;&gt; hoogs&#010;&gt; On Apr 14, 2013 3:02 PM, "Peter Donald" &lt;peter@realityforge.org&gt; wrote:&#010;&gt;&#010;&gt;&gt; Hi,&#010;&gt;&gt;&#010;&gt;&gt; Now I understand. An example for this is at&#010;&gt;&gt;&#010;&gt;&gt; https://gist.github.com/realityforge/5381737&#010;&gt;&gt;&#010;&gt;&gt; On Sun, Apr 14, 2013 at 2:00 PM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt;&gt; wrote:&#010;&gt;&gt;&#010;&gt;&gt; &gt; To break this down to simpler questions:&#010;&gt;&gt; &gt;&#010;&gt;&gt; &gt; 1. How to access a subset of the jar files buildr remotely downloaded?&#010;&gt;&gt; &gt; 2. How to include this subset as jars, without modification, within a&#010;&gt;&gt; new&#010;&gt;&gt; &gt; jar package?&#010;&gt;&gt; &gt; 3. How to create a Class-Path string, properly formatted, that includes&#010;&gt;&gt; &gt; this subset of jars, for use in the final package manifest? (Ruby&#010;&gt;&gt; newbie)&#010;&gt;&gt; &gt;&#010;&gt;&gt; &gt; hoogs&#010;&gt;&gt; &gt; On Apr 14, 2013 10:17 AM, "Jason Hoogland" &lt;hoogland@gmail.com&gt; wrote:&#010;&gt;&gt; &gt;&#010;&gt;&gt; &gt; &gt; Thanks Peter,&#010;&gt;&gt; &gt; &gt;&#010;&gt;&gt; &gt; &gt; I am having trouble finding useful buildfile examples so will check&#010;&gt;&gt; this&#010;&gt;&gt; &gt; &gt; out.&#010;&gt;&gt; &gt; &gt;&#010;&gt;&gt; &gt; &gt; I am trying to do the former, nesting the dep jars inside the final&#010;&gt;&gt; jar.&#010;&gt;&gt; &gt; &gt; Then I have only one manifest file to worry about. I find it a lot&#010;&gt;&gt; &gt; cleaner.&#010;&gt;&gt; &gt; &gt; Currently my buildfile is doing what you do, just mash all the dep&#010;&gt;&gt; files&#010;&gt;&gt; &gt; &gt; together into the jar, the problem i've got there is that the&#010;&gt;&gt; MANIFEST.MF&#010;&gt;&gt; &gt; &gt; files seem to overwrite each other, but maybe that link will help.&#010;&gt;&gt; &gt; &gt;&#010;&gt;&gt; &gt; &gt; hoogs&#010;&gt;&gt; &gt; &gt; On Apr 14, 2013 9:59 AM, "Peter Donald" &lt;peter@realityforge.org&gt;&#010;&gt;&gt; wrote:&#010;&gt;&gt; &gt; &gt;&#010;&gt;&gt; &gt; &gt;&gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&#010;&gt;&gt; &gt;&#010;&gt;&gt; &gt; &gt;&gt; wrote:&#010;&gt;&gt; &gt; &gt;&gt;&#010;&gt;&gt; &gt; &gt;&gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt;&gt; &gt; &gt;&gt; &gt; 1. compile my src code into classes&#010;&gt;&gt; &gt; &gt;&gt; &gt; 2. packages them into a jar&#010;&gt;&gt; &gt; &gt;&gt; &gt; 3. adds the dependency jars to this jar&#010;&gt;&gt; &gt; &gt;&gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt;&gt; &gt; &gt;&gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt;&gt; &gt; &gt;&gt; &gt;&#010;&gt;&gt; &gt; &gt;&gt;&#010;&gt;&gt; &gt; &gt;&gt; I am not sure I exactly follow. Do you want to include the jars as&#010;&gt;&gt; &gt; nested&#010;&gt;&gt; &gt; &gt;&gt; jars or just include the files form the jar in the final jar?&#010;&gt;&gt; &gt; &gt;&gt;&#010;&gt;&gt; &gt; &gt;&gt; I usually attempt the second option and use code that looks similar&#010;&gt;&gt; to&#010;&gt;&gt; &gt; &gt;&gt;&#010;&gt;&gt; &gt; &gt;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt;&gt; &gt; &gt;&gt;&#010;&gt;&gt; &gt; &gt;&gt; to achieve this goal.&#010;&gt;&gt; &gt; &gt;&gt;&#010;&gt;&gt; &gt; &gt;&gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt;&gt; &gt; &gt;&gt;&#010;&gt;&gt; &gt; &gt;&gt; Peter Donald&#010;&gt;&gt; &gt; &gt;&gt;&#010;&gt;&gt; &gt; &gt;&#010;&gt;&gt; &gt;&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; --&#010;&gt;&gt; Cheers,&#010;&gt;&gt;&#010;&gt;&gt; Peter Donald&#010;&gt;&gt;&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Real world build files and  stand-alone jar</title>
<author><name>Magnus Melander &lt;magnus@huggtand.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cB9FB8520-9307-405A-8F99-A50D2DDC2598@huggtand.com%3e"/>
<id>urn:uuid:%3cB9FB8520-9307-405A-8F99-A50D2DDC2598@huggtand-com%3e</id>
<updated>2013-04-14T08:16:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi All!&#010;I think the question about where to find real world examples of build files is a really valid&#010;question.&#010;I find the buildr documentation great except for that part.&#010;A collection of real world build files would help a lot, especially when one is new to buildr.&#010;&#010;Btw, since I started to use buildr, I have never looked back.&#010;&#010;Regards,&#010;Magnus&#010;&#010;El 14 apr 2013, a las 09.36, Jason Hoogland escribió:&#010;&#010;&gt; Peter,&#010;&gt; &#010;&gt; Awesome, thank you SO much, looks like the trick. How do you find all these&#010;&gt; buildfiles?&#010;&gt; &#010;&gt; I think i love buildr, bye bye ant, xml!&#010;&gt; &#010;&gt; hoogs&#010;&gt; On Apr 14, 2013 3:02 PM, "Peter Donald" &lt;peter@realityforge.org&gt; wrote:&#010;&gt; &#010;&gt;&gt; Hi,&#010;&gt;&gt; &#010;&gt;&gt; Now I understand. An example for this is at&#010;&gt;&gt; &#010;&gt;&gt; https://gist.github.com/realityforge/5381737&#010;&gt;&gt; &#010;&gt;&gt; On Sun, Apr 14, 2013 at 2:00 PM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt;&gt; wrote:&#010;&gt;&gt; &#010;&gt;&gt;&gt; To break this down to simpler questions:&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; 1. How to access a subset of the jar files buildr remotely downloaded?&#010;&gt;&gt;&gt; 2. How to include this subset as jars, without modification, within a new&#010;&gt;&gt;&gt; jar package?&#010;&gt;&gt;&gt; 3. How to create a Class-Path string, properly formatted, that includes&#010;&gt;&gt;&gt; this subset of jars, for use in the final package manifest? (Ruby newbie)&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; hoogs&#010;&gt;&gt;&gt; On Apr 14, 2013 10:17 AM, "Jason Hoogland" &lt;hoogland@gmail.com&gt; wrote:&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; Thanks Peter,&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; I am having trouble finding useful buildfile examples so will check&#010;&gt;&gt; this&#010;&gt;&gt;&gt;&gt; out.&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; I am trying to do the former, nesting the dep jars inside the final&#010;&gt;&gt; jar.&#010;&gt;&gt;&gt;&gt; Then I have only one manifest file to worry about. I find it a lot&#010;&gt;&gt;&gt; cleaner.&#010;&gt;&gt;&gt;&gt; Currently my buildfile is doing what you do, just mash all the dep&#010;&gt;&gt; files&#010;&gt;&gt;&gt;&gt; together into the jar, the problem i've got there is that the&#010;&gt;&gt; MANIFEST.MF&#010;&gt;&gt;&gt;&gt; files seem to overwrite each other, but maybe that link will help.&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; hoogs&#010;&gt;&gt;&gt;&gt; On Apr 14, 2013 9:59 AM, "Peter Donald" &lt;peter@realityforge.org&gt;&#010;&gt;&gt; wrote:&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt;&gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt;&gt;&gt;&gt;&gt; wrote:&#010;&gt;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt;&gt;&gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt;&gt;&gt;&gt;&gt;&gt; 1. compile my src code into classes&#010;&gt;&gt;&gt;&gt;&gt;&gt; 2. packages them into a jar&#010;&gt;&gt;&gt;&gt;&gt;&gt; 3. adds the dependency jars to this jar&#010;&gt;&gt;&gt;&gt;&gt;&gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt;&gt;&gt;&gt;&gt;&gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt;&gt;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt;&gt; I am not sure I exactly follow. Do you want to include the jars as&#010;&gt;&gt;&gt; nested&#010;&gt;&gt;&gt;&gt;&gt; jars or just include the files form the jar in the final jar?&#010;&gt;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt;&gt; I usually attempt the second option and use code that looks similar to&#010;&gt;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt;&gt; to achieve this goal.&#010;&gt;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt;&gt; HTH (And sorry if I am missing what you are trying to do),&#010;&gt;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt;&gt; Peter Donald&#010;&gt;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt; &#010;&gt;&gt; &#010;&gt;&gt; &#010;&gt;&gt; &#010;&gt;&gt; --&#010;&gt;&gt; Cheers,&#010;&gt;&gt; &#010;&gt;&gt; Peter Donald&#010;&gt;&gt; &#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA_TaTOZYdXcgcyX4Y-8W_sDSezDn24rq8bKTpsjMNRESQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA_TaTOZYdXcgcyX4Y-8W_sDSezDn24rq8bKTpsjMNRESQ@mail-gmail-com%3e</id>
<updated>2013-04-14T07:36:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Peter,&#010;&#010;Awesome, thank you SO much, looks like the trick. How do you find all these&#010;buildfiles?&#010;&#010;I think i love buildr, bye bye ant, xml!&#010;&#010;hoogs&#010;On Apr 14, 2013 3:02 PM, "Peter Donald" &lt;peter@realityforge.org&gt; wrote:&#010;&#010;&gt; Hi,&#010;&gt;&#010;&gt; Now I understand. An example for this is at&#010;&gt;&#010;&gt; https://gist.github.com/realityforge/5381737&#010;&gt;&#010;&gt; On Sun, Apr 14, 2013 at 2:00 PM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; wrote:&#010;&gt;&#010;&gt; &gt; To break this down to simpler questions:&#010;&gt; &gt;&#010;&gt; &gt; 1. How to access a subset of the jar files buildr remotely downloaded?&#010;&gt; &gt; 2. How to include this subset as jars, without modification, within a new&#010;&gt; &gt; jar package?&#010;&gt; &gt; 3. How to create a Class-Path string, properly formatted, that includes&#010;&gt; &gt; this subset of jars, for use in the final package manifest? (Ruby newbie)&#010;&gt; &gt;&#010;&gt; &gt; hoogs&#010;&gt; &gt; On Apr 14, 2013 10:17 AM, "Jason Hoogland" &lt;hoogland@gmail.com&gt; wrote:&#010;&gt; &gt;&#010;&gt; &gt; &gt; Thanks Peter,&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; I am having trouble finding useful buildfile examples so will check&#010;&gt; this&#010;&gt; &gt; &gt; out.&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; I am trying to do the former, nesting the dep jars inside the final&#010;&gt; jar.&#010;&gt; &gt; &gt; Then I have only one manifest file to worry about. I find it a lot&#010;&gt; &gt; cleaner.&#010;&gt; &gt; &gt; Currently my buildfile is doing what you do, just mash all the dep&#010;&gt; files&#010;&gt; &gt; &gt; together into the jar, the problem i've got there is that the&#010;&gt; MANIFEST.MF&#010;&gt; &gt; &gt; files seem to overwrite each other, but maybe that link will help.&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt; hoogs&#010;&gt; &gt; &gt; On Apr 14, 2013 9:59 AM, "Peter Donald" &lt;peter@realityforge.org&gt;&#010;&gt; wrote:&#010;&gt; &gt; &gt;&#010;&gt; &gt; &gt;&gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; &gt; &gt;&gt; wrote:&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt; &gt; &gt;&gt; &gt; 1. compile my src code into classes&#010;&gt; &gt; &gt;&gt; &gt; 2. packages them into a jar&#010;&gt; &gt; &gt;&gt; &gt; 3. adds the dependency jars to this jar&#010;&gt; &gt; &gt;&gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt; &gt; &gt;&gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt; &gt; &gt;&gt; &gt;&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; I am not sure I exactly follow. Do you want to include the jars as&#010;&gt; &gt; nested&#010;&gt; &gt; &gt;&gt; jars or just include the files form the jar in the final jar?&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; I usually attempt the second option and use code that looks similar to&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; to achieve this goal.&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&gt; Peter Donald&#010;&gt; &gt; &gt;&gt;&#010;&gt; &gt; &gt;&#010;&gt; &gt;&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; --&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Peter Donald&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Peter Donald &lt;peter@realityforge.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCACiKNc4gVp6epFnsksXy+3tew_gaLE4=h6tbcZmBwFPads=FvQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc4gVp6epFnsksXy+3tew_gaLE4=h6tbcZmBwFPads=FvQ@mail-gmail-com%3e</id>
<updated>2013-04-14T07:02:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,&#010;&#010;Now I understand. An example for this is at&#010;&#010;https://gist.github.com/realityforge/5381737&#010;&#010;On Sun, Apr 14, 2013 at 2:00 PM, Jason Hoogland &lt;hoogland@gmail.com&gt; wrote:&#010;&#010;&gt; To break this down to simpler questions:&#010;&gt;&#010;&gt; 1. How to access a subset of the jar files buildr remotely downloaded?&#010;&gt; 2. How to include this subset as jars, without modification, within a new&#010;&gt; jar package?&#010;&gt; 3. How to create a Class-Path string, properly formatted, that includes&#010;&gt; this subset of jars, for use in the final package manifest? (Ruby newbie)&#010;&gt;&#010;&gt; hoogs&#010;&gt; On Apr 14, 2013 10:17 AM, "Jason Hoogland" &lt;hoogland@gmail.com&gt; wrote:&#010;&gt;&#010;&gt; &gt; Thanks Peter,&#010;&gt; &gt;&#010;&gt; &gt; I am having trouble finding useful buildfile examples so will check this&#010;&gt; &gt; out.&#010;&gt; &gt;&#010;&gt; &gt; I am trying to do the former, nesting the dep jars inside the final jar.&#010;&gt; &gt; Then I have only one manifest file to worry about. I find it a lot&#010;&gt; cleaner.&#010;&gt; &gt; Currently my buildfile is doing what you do, just mash all the dep files&#010;&gt; &gt; together into the jar, the problem i've got there is that the MANIFEST.MF&#010;&gt; &gt; files seem to overwrite each other, but maybe that link will help.&#010;&gt; &gt;&#010;&gt; &gt; hoogs&#010;&gt; &gt; On Apr 14, 2013 9:59 AM, "Peter Donald" &lt;peter@realityforge.org&gt; wrote:&#010;&gt; &gt;&#010;&gt; &gt;&gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; &gt;&gt; wrote:&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt; &gt;&gt; &gt; 1. compile my src code into classes&#010;&gt; &gt;&gt; &gt; 2. packages them into a jar&#010;&gt; &gt;&gt; &gt; 3. adds the dependency jars to this jar&#010;&gt; &gt;&gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt; &gt;&gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt; &gt;&gt; &gt;&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; I am not sure I exactly follow. Do you want to include the jars as&#010;&gt; nested&#010;&gt; &gt;&gt; jars or just include the files form the jar in the final jar?&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; I usually attempt the second option and use code that looks similar to&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; to achieve this goal.&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; Peter Donald&#010;&gt; &gt;&gt;&#010;&gt; &gt;&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;Cheers,&#010;&#010;Peter Donald&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA9nhxZzHs4moOsN4x2L6kiV=5eV5+bEp8EjjQ27bSDdwQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA9nhxZzHs4moOsN4x2L6kiV=5eV5+bEp8EjjQ27bSDdwQ@mail-gmail-com%3e</id>
<updated>2013-04-14T04:00:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
To break this down to simpler questions:&#010;&#010;1. How to access a subset of the jar files buildr remotely downloaded?&#010;2. How to include this subset as jars, without modification, within a new&#010;jar package?&#010;3. How to create a Class-Path string, properly formatted, that includes&#010;this subset of jars, for use in the final package manifest? (Ruby newbie)&#010;&#010;hoogs&#010;On Apr 14, 2013 10:17 AM, "Jason Hoogland" &lt;hoogland@gmail.com&gt; wrote:&#010;&#010;&gt; Thanks Peter,&#010;&gt;&#010;&gt; I am having trouble finding useful buildfile examples so will check this&#010;&gt; out.&#010;&gt;&#010;&gt; I am trying to do the former, nesting the dep jars inside the final jar.&#010;&gt; Then I have only one manifest file to worry about. I find it a lot cleaner.&#010;&gt; Currently my buildfile is doing what you do, just mash all the dep files&#010;&gt; together into the jar, the problem i've got there is that the MANIFEST.MF&#010;&gt; files seem to overwrite each other, but maybe that link will help.&#010;&gt;&#010;&gt; hoogs&#010;&gt; On Apr 14, 2013 9:59 AM, "Peter Donald" &lt;peter@realityforge.org&gt; wrote:&#010;&gt;&#010;&gt;&gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt;&gt; wrote:&#010;&gt;&gt;&#010;&gt;&gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt;&gt; &gt; 1. compile my src code into classes&#010;&gt;&gt; &gt; 2. packages them into a jar&#010;&gt;&gt; &gt; 3. adds the dependency jars to this jar&#010;&gt;&gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt;&gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt;&gt; &gt;&#010;&gt;&gt;&#010;&gt;&gt; I am not sure I exactly follow. Do you want to include the jars as nested&#010;&gt;&gt; jars or just include the files form the jar in the final jar?&#010;&gt;&gt;&#010;&gt;&gt; I usually attempt the second option and use code that looks similar to&#010;&gt;&gt;&#010;&gt;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt;&gt;&#010;&gt;&gt; to achieve this goal.&#010;&gt;&gt;&#010;&gt;&gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt;&gt;&#010;&gt;&gt; Peter Donald&#010;&gt;&gt;&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA8mRyBg19Og_OnnXzJmTsDD0rg8z33qUfDXpnW39Gh3GQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA8mRyBg19Og_OnnXzJmTsDD0rg8z33qUfDXpnW39Gh3GQ@mail-gmail-com%3e</id>
<updated>2013-04-14T02:17:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Peter,&#010;&#010;I am having trouble finding useful buildfile examples so will check this&#010;out.&#010;&#010;I am trying to do the former, nesting the dep jars inside the final jar.&#010;Then I have only one manifest file to worry about. I find it a lot cleaner.&#010;Currently my buildfile is doing what you do, just mash all the dep files&#010;together into the jar, the problem i've got there is that the MANIFEST.MF&#010;files seem to overwrite each other, but maybe that link will help.&#010;&#010;hoogs&#010;On Apr 14, 2013 9:59 AM, "Peter Donald" &lt;peter@realityforge.org&gt; wrote:&#010;&#010;&gt; On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&gt;&#010;&gt; wrote:&#010;&gt;&#010;&gt; &gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt; &gt; 1. compile my src code into classes&#010;&gt; &gt; 2. packages them into a jar&#010;&gt; &gt; 3. adds the dependency jars to this jar&#010;&gt; &gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt; &gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt; &gt;&#010;&gt;&#010;&gt; I am not sure I exactly follow. Do you want to include the jars as nested&#010;&gt; jars or just include the files form the jar in the final jar?&#010;&gt;&#010;&gt; I usually attempt the second option and use code that looks similar to&#010;&gt;&#010;&gt; https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&gt;&#010;&gt; to achieve this goal.&#010;&gt;&#010;&gt;  HTH (And sorry if I am missing what you are trying to do),&#010;&gt;&#010;&gt; Peter Donald&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stand-alone jar</title>
<author><name>Peter Donald &lt;peter@realityforge.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCACiKNc7jRV7n_zXNsrWDEXu5g+h58mZSGuBQFrFEu9OOVgLYLQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc7jRV7n_zXNsrWDEXu5g+h58mZSGuBQFrFEu9OOVgLYLQ@mail-gmail-com%3e</id>
<updated>2013-04-14T01:58:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland &lt;hoogland@gmail.com&gt; wrote:&#010;&#010;&gt; I'm trying to do what my old ant build.xml does, namely:&#010;&gt; 1. compile my src code into classes&#010;&gt; 2. packages them into a jar&#010;&gt; 3. adds the dependency jars to this jar&#010;&gt; 4. includes "Main-Class" and "Class-Path" attributes to&#010;&gt; META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&gt;&#010;&#010;I am not sure I exactly follow. Do you want to include the jars as nested&#010;jars or just include the files form the jar in the final jar?&#010;&#010;I usually attempt the second option and use code that looks similar to&#010;&#010;https://github.com/realityforge/spydle/blob/master/buildfile#L19&#010;&#010;to achieve this goal.&#010;&#010; HTH (And sorry if I am missing what you are trying to do),&#010;&#010;Peter Donald&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>stand-alone jar</title>
<author><name>Jason Hoogland &lt;hoogland@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAJrHXA-jtth+G5OrQuf9egavZg78obodMp9NVJW=ycMBU37Z7Q@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJrHXA-jtth+G5OrQuf9egavZg78obodMp9NVJW=ycMBU37Z7Q@mail-gmail-com%3e</id>
<updated>2013-04-13T14:19:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I;ve seen&#010;http://stackoverflow.com/questions/1279419/buildr-package-dependencies-into-a-single-jar/1285293#1285293but&#010;I'd prefer a buildr-only solution and it I can't find any good info&#010;regarding inserting the Class-Path in the MANIFEST.MF&#010;&#010;I have&#010;&#010;DEPS =&#010;[&#010;  ARGS4J,&#010;  JASYPT,&#010;  WEB,&#010;  ORIENTDB,&#010;  '/path/to/local.jar'&#010;]&#010;&#010;repositories.remote &lt;&lt; 'http://repo1.maven.org/maven2'&#010;&#010;define 'My Project' do&#010;&#010;  project.version = VERSION_NUMBER&#010;  project.group = 'myGroup'&#010;  compile.options.target = '1.7'&#010;&#010;  desc 'Bountius Server'&#010;  define 'deps' do&#010;    package(:jar).merge(DEPS)&#010;  end&#010;&#010;  manifest['Main-Class'] = 'com.myProject.control.Start'&#010;&#010;  desc 'iMyProject Server'&#010;  define 'server' do&#010;    compile.with DEPS&#010;    package(:jar).merge(DEPS)&#010;  end&#010;end&#010;&#010;The server jar created just throws the kitchen sink in, apparently&#010;overwriting the META-ING/MANIFEST.MF with the final artifact MANIFEST.MF&#010;rather than using my manifest settings.&#010;&#010;I'm trying to do what my old ant build.xml does, namely:&#010;1. compile my src code into classes&#010;2. packages them into a jar&#010;3. adds the dependency jars to this jar&#010;4. includes "Main-Class" and "Class-Path" attributes to&#010;META-INF/MANIFEST.MF, the latter properly formatted, e.g.:&#010;&#010;Class-Path: args4j-2.0.18.jar gson-2.2.2.jar jasypt-1.9.0.jar orient-c&#010; ommons-1.3.0.jar orientdb-client-1.3.0.jar orientdb-core-1.3.0.jar or&#010; ientdb-enterprise-1.3.0.jar orientdb-server-1.3.0.jar prodigitum.util&#010; .jar commons-exec-1.1.jar commons-logging-1.1.1.jar guava-14.0.jar ht&#010; tpclient-4.2.1.jar httpcore-4.2.1.jar json-20080701.jar selenium-java&#010; -2.31.0.jar&#010;&#010;The resulting jar can be run stand-alone.&#010;&#010;I'm open to a better or equivalent way in buildr if someone could possibly&#010;help&#010;&#010;Cheers&#010;hoogs&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proguard and Ant Task</title>
<author><name>Khristian Schönrock &lt;smirnegger@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAHSH_VBRzYHRS_nZ6pbHKNv8S6RuN9kNKsK5mAtN5kv8Q2y_Jw@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHSH_VBRzYHRS_nZ6pbHKNv8S6RuN9kNKsK5mAtN5kv8Q2y_Jw@mail-gmail-com%3e</id>
<updated>2013-04-12T12:27:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Alex,&#010;&#010;thanks for your help! I got my proguard task going as I wanted after a few&#010;modifications to your script: https://gist.github.com/derkosak/5371630&#010;&#010;However, I seem to have stumbled upon the "task calls exit(), buildr exits&#010;as well" issue. How can I work around this? I've read that forking the call&#010;does the trick, but couldn't figure out how it is done.&#010;&#010;TIA,&#010;Khristian&#010;&#010;&#010;&#010;On Sat, Apr 6, 2013 at 12:28 AM, Alex Boisvert &lt;alex.boisvert@gmail.com&gt;wrote:&#010;&#010;&gt; Hi Khristian,&#010;&gt;&#010;&gt; I hacked something quickly together here:&#010;&gt; https://gist.github.com/aboisvert/5323180&#010;&gt;&#010;&gt; I didn't use the Ant task since I thought it was too much trouble compared&#010;&gt; to using the Proguard 'main class' and passing argument directly to it.&#010;&gt; Note that this is just a prototype that doesn't support many of the&#010;&gt; proguard options .. basically the bare minimum to get you going.&#010;&gt;&#010;&gt; Hope this helps,&#010;&gt; alex&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; On Fri, Apr 5, 2013 at 7:47 AM, Khristian Schönrock &lt;smirnegger@gmail.com&#010;&gt; &gt;wrote:&#010;&gt;&#010;&gt; &gt; Hello everyone,&#010;&gt; &gt; I'm trying to add a proguard task to my project. So far I've not found&#010;&gt; any&#010;&gt; &gt; sort of Proguard-addon for Buildr, so I tried using the Ant task.&#010;&gt; &gt;&#010;&gt; &gt; I tried to mimic the OpenJPA task, and ended up with the following code:&#010;&gt; &gt;&#010;&gt; &gt; REQUIRES = [ ...bunch of libraries... ]&#010;&gt; &gt;&#010;&gt; &gt; ant('proguard') do |ant|&#010;&gt; &gt;     ant.taskdef :name=&gt;'proguard',&#010;&gt; :classname=&gt;'proguard.ant.ProGuardTask',&#010;&gt; &gt;       :classpath=&gt;REQUIRES.join(File::PATH_SEPARATOR)&#010;&gt; &gt;     ant.proguard :configuration=&gt;_('../build/configuration.pro'), #&#010;&gt; config&#010;&gt; &gt; file&#010;&gt; &gt;       :injars=&gt;project('my_project') # snag here&#010;&gt; &gt; end&#010;&gt; &gt;&#010;&gt; &gt; And so I am left with a bunch of intertwining questions:&#010;&gt; &gt;&#010;&gt; &gt; - Since I'm defining the task in a project that should be processed by&#010;&gt; &gt; proguard, I'm not sure how I should add the project to the classpath.&#010;&gt; &gt; - Moving the proguard task to some other project ("distribution", for&#010;&gt; &gt; example) solves the problem, but proguard complains that I need to define&#010;&gt; &gt; the "-injars" parameter, which I tried unsuccessfully with the :injars&#010;&gt; code&#010;&gt; &gt; above.&#010;&gt; &gt; - Since "-injars" is part of the configuration, in the Proguard Ant task&#010;&gt; it&#010;&gt; &gt; can be defined either in the configuration file ("configuration.pro"),&#010;&gt; or&#010;&gt; &gt; in the body of the &lt;configuration&gt; tag. Supposing the :configuration key&#010;&gt; &gt; maps to this tag, can I add this "tag content"?&#010;&gt; &gt;&#010;&gt; &gt; How do I best configure this?&#010;&gt; &gt;&#010;&gt; &gt; Thanks in advance,&#010;&gt; &gt; Khristian&#010;&gt; &gt;&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Proguard and Ant Task</title>
<author><name>Alex Boisvert &lt;alex.boisvert@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAHuk3y5SYpuk6Ze4rYp=5ACBWDZfTn6t+EbENNZzye+ma1V9Kw@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHuk3y5SYpuk6Ze4rYp=5ACBWDZfTn6t+EbENNZzye+ma1V9Kw@mail-gmail-com%3e</id>
<updated>2013-04-05T22:28:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Khristian,&#010;&#010;I hacked something quickly together here:&#010;https://gist.github.com/aboisvert/5323180&#010;&#010;I didn't use the Ant task since I thought it was too much trouble compared&#010;to using the Proguard 'main class' and passing argument directly to it.&#010;Note that this is just a prototype that doesn't support many of the&#010;proguard options .. basically the bare minimum to get you going.&#010;&#010;Hope this helps,&#010;alex&#010;&#010;&#010;&#010;On Fri, Apr 5, 2013 at 7:47 AM, Khristian Schönrock &lt;smirnegger@gmail.com&gt;wrote:&#010;&#010;&gt; Hello everyone,&#010;&gt; I'm trying to add a proguard task to my project. So far I've not found any&#010;&gt; sort of Proguard-addon for Buildr, so I tried using the Ant task.&#010;&gt;&#010;&gt; I tried to mimic the OpenJPA task, and ended up with the following code:&#010;&gt;&#010;&gt; REQUIRES = [ ...bunch of libraries... ]&#010;&gt;&#010;&gt; ant('proguard') do |ant|&#010;&gt;     ant.taskdef :name=&gt;'proguard', :classname=&gt;'proguard.ant.ProGuardTask',&#010;&gt;       :classpath=&gt;REQUIRES.join(File::PATH_SEPARATOR)&#010;&gt;     ant.proguard :configuration=&gt;_('../build/configuration.pro'), # config&#010;&gt; file&#010;&gt;       :injars=&gt;project('my_project') # snag here&#010;&gt; end&#010;&gt;&#010;&gt; And so I am left with a bunch of intertwining questions:&#010;&gt;&#010;&gt; - Since I'm defining the task in a project that should be processed by&#010;&gt; proguard, I'm not sure how I should add the project to the classpath.&#010;&gt; - Moving the proguard task to some other project ("distribution", for&#010;&gt; example) solves the problem, but proguard complains that I need to define&#010;&gt; the "-injars" parameter, which I tried unsuccessfully with the :injars code&#010;&gt; above.&#010;&gt; - Since "-injars" is part of the configuration, in the Proguard Ant task it&#010;&gt; can be defined either in the configuration file ("configuration.pro"), or&#010;&gt; in the body of the &lt;configuration&gt; tag. Supposing the :configuration key&#010;&gt; maps to this tag, can I add this "tag content"?&#010;&gt;&#010;&gt; How do I best configure this?&#010;&gt;&#010;&gt; Thanks in advance,&#010;&gt; Khristian&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Proguard and Ant Task</title>
<author><name>Khristian Schönrock &lt;smirnegger@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201304.mbox/%3cCAHSH_VBouXUD-ShEXVAegE989P1EDax4Zep7S5ORKtC5gKGPjQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHSH_VBouXUD-ShEXVAegE989P1EDax4Zep7S5ORKtC5gKGPjQ@mail-gmail-com%3e</id>
<updated>2013-04-05T14:47:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello everyone,&#010;I'm trying to add a proguard task to my project. So far I've not found any&#010;sort of Proguard-addon for Buildr, so I tried using the Ant task.&#010;&#010;I tried to mimic the OpenJPA task, and ended up with the following code:&#010;&#010;REQUIRES = [ ...bunch of libraries... ]&#010;&#010;ant('proguard') do |ant|&#010;    ant.taskdef :name=&gt;'proguard', :classname=&gt;'proguard.ant.ProGuardTask',&#010;      :classpath=&gt;REQUIRES.join(File::PATH_SEPARATOR)&#010;    ant.proguard :configuration=&gt;_('../build/configuration.pro'), # config&#010;file&#010;      :injars=&gt;project('my_project') # snag here&#010;end&#010;&#010;And so I am left with a bunch of intertwining questions:&#010;&#010;- Since I'm defining the task in a project that should be processed by&#010;proguard, I'm not sure how I should add the project to the classpath.&#010;- Moving the proguard task to some other project ("distribution", for&#010;example) solves the problem, but proguard complains that I need to define&#010;the "-injars" parameter, which I tried unsuccessfully with the :injars code&#010;above.&#010;- Since "-injars" is part of the configuration, in the Proguard Ant task it&#010;can be defined either in the configuration file ("configuration.pro"), or&#010;in the body of the &lt;configuration&gt; tag. Supposing the :configuration key&#010;maps to this tag, can I add this "tag content"?&#010;&#010;How do I best configure this?&#010;&#010;Thanks in advance,&#010;Khristian&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ANNOUNCE] Apache Buildr 1.4.11 released</title>
<author><name>Peter Donald &lt;donaldp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201303.mbox/%3cCACiKNc7HsEB+onG_45v8Q1B2QKhA0XFFypE2qnSXCytb3ZRBFA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACiKNc7HsEB+onG_45v8Q1B2QKhA0XFFypE2qnSXCytb3ZRBFA@mail-gmail-com%3e</id>
<updated>2013-03-20T18:55:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Apache Buildr is a build system for Java-based applications, including support&#010;for Scala, Groovy and a growing number of JVM languages and tools.  We wanted&#010;something that's simple and intuitive to use, so we only need to tell it what&#010;to do, and it takes care of the rest.  But also something we can easily extend&#010;for those one-off tasks, with a language that's a joy to use.&#010;&#010;&#010;New in this release:&#010;&#010;  * Fixed:  Multiple tests in TestNG 6.x versions were being&#010;incorrectly passed to&#010;            the command line application.&#010;&#010;&#010;To learn more about Buildr and get started:&#010;http://buildr.apache.org/&#010;&#010;Thanks!&#010;The Apache Buildr Team&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: jar signing after packaging of jar</title>
<author><name>Anthony Bargnesi &lt;abargnesi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/buildr-users/201303.mbox/%3cCAH6n4ULfqsNt8skOKNPomrQJeyscdndO3UpQUufDixSsFRop=w@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAH6n4ULfqsNt8skOKNPomrQJeyscdndO3UpQUufDixSsFRop=w@mail-gmail-com%3e</id>
<updated>2013-03-19T20:48:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Nevermind.  Didn't read the wiki that closely.  I needed the following&#010;package enhance&#010;to apply after the artifact was created:&#010;&#010;def sign_jar(task)&#010;  task.enhance do&#010;    puts "Signing jar #{task.to_s}"&#010;    signing = Buildr.settings.build['signing']&#010;    store, aka, pass = signing.values_at('keystore', 'alias', 'storepass')&#010;    puts task.to_s&#010;    ant('signjar') do |signjar|&#010;      signjar.signjar :jar=&gt;task.to_s, :alias=&gt;aka,&#010;:keystore=&gt;store,&#010;&#010;                      :storepass=&gt;pass&#010;    end&#010;  end&#010;end&#010;&#010;Then on the package to enhance I added:&#010;&#010;packages.first.enhance &amp;method(:sign_jar)&#010;&#010;&#010;Thanks!&#010;&#010;On Tue, Mar 19, 2013 at 4:37 PM, Anthony Bargnesi &lt;abargnesi@gmail.com&gt;wrote:&#010;&#010;&gt; Hey folks,&#010;&gt;&#010;&gt; I am trying to sign a jar after it is packaged so that the target artifact&#010;&gt; is a signed jar.&#010;&gt;&#010;&gt; I created a separate task to do the work:&#010;&gt;&#010;&gt; task :sign_task do&#010;&gt;   signing = Buildr.settings.build['signing']&#010;&gt;   store, aka, pass = signing.values_at('keystore', 'alias', 'storepass')&#010;&gt;   projects.each do |prj|&#010;&gt;     prj.packages.select{ |pkg| pkg.to_s.end_with?('.jar')}.each do |pkg|&#010;&gt;       ant('signjar') do |signjar|&#010;&gt;         signjar.signjar :jar=&gt;pkg, :alias=&gt;aka, :keystore=&gt;store,&#010;&gt;                         :storepass=&gt;pass&#010;&gt;       end&#010;&gt;     end&#010;&gt;   end&#010;&gt; end&#010;&gt;&#010;&gt; but this isn't hooked into the jar's packaging.  How can this be&#010;&gt; accomplished?&#010;&gt;&#010;&gt; Thanks!&#010;&gt; Anthony Bargnesi&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
</feed>
