Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28575 > unrolled thread

jar building

Started byRoedy Green <see_website@mindprod.com.invalid>
First post2014-05-28 06:47 -0700
Last post2014-05-28 17:38 +0200
Articles 6 — 3 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  jar building Roedy Green <see_website@mindprod.com.invalid> - 2014-05-28 06:47 -0700
    Re: jar building leif.roar@invalid.com (Leif Roar Moldskred) - 2014-05-28 09:33 -0500
      Re: jar building Roedy Green <see_website@mindprod.com.invalid> - 2014-05-28 07:37 -0700
        Re: jar building leif.roar@invalid.com (Leif Roar Moldskred) - 2014-05-28 10:00 -0500
          Re: jar building Roedy Green <see_website@mindprod.com.invalid> - 2014-06-02 07:02 -0700
    Re: jar building Joerg Meier <joergmmeier@arcor.de> - 2014-05-28 17:38 +0200

#28575 — jar building

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-05-28 06:47 -0700
Subjectjar building
Message-ID<t4qbo9t71neh0cp4nqblflr7evv86aobr1@4ax.com>
What strategy do you use to prepare a list of classes to include in a
jar?

How do you ensure you did not forget anything?

How do you ensure you did not include anything needlessly?

I have been using GenJar, but it is failing more and more often.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Young man, in mathematics you don't understand things.
You just get used to them. 
~ John von Neumann (born: 1903-12-28 died: 1957-02-08 at age: 53)

[toc] | [next] | [standalone]


#28579

Fromleif.roar@invalid.com (Leif Roar Moldskred)
Date2014-05-28 09:33 -0500
Message-ID<96OdnX8QJLMBbhjOnZ2dnUVZ8qudnZ2d@giganews.com>
In reply to#28575
Roedy Green <see_website@mindprod.com.invalid> wrote:
>
> What strategy do you use to prepare a list of classes to include in a
> jar?
>

My strategy is to use a build system and let it worry about it.

> How do you ensure you did not forget anything?

Build system and continuous integration.
 
> How do you ensure you did not include anything needlessly?

I rarely bother with that. Unless you're writing applets there's little
point, and there's not much call for writing applets these days.
 
> I have been using GenJar, but it is failing more and more often.

GenJar or GenJar2?

-- 
Leif Roar Moldskred

[toc] | [prev] | [next] | [standalone]


#28580

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-05-28 07:37 -0700
Message-ID<55tbo991h92itfcinbb4itltjvgh51b501@4ax.com>
In reply to#28579
On Wed, 28 May 2014 09:33:00 -0500, leif.roar@invalid.com (Leif Roar
Moldskred) wrote, quoted or indirectly quoted someone who said :

>> I have been using GenJar, but it is failing more and more often.
>
>GenJar or GenJar2?

GenJar. I could never get GenJar2 to work at all.

What build system do you use? Maven?
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Young man, in mathematics you don't understand things.
You just get used to them. 
~ John von Neumann (born: 1903-12-28 died: 1957-02-08 at age: 53)

[toc] | [prev] | [next] | [standalone]


#28581

Fromleif.roar@invalid.com (Leif Roar Moldskred)
Date2014-05-28 10:00 -0500
Message-ID<FaydncvGg8m0ZxjOnZ2dnUVZ7oednZ2d@giganews.com>
In reply to#28580
Roedy Green <see_website@mindprod.com.invalid> wrote:
> 
> What build system do you use? Maven?

Maven or Gradle. I prefer Gradle myself, but Maven is more widely used.

-- 
Leif Roar

[toc] | [prev] | [next] | [standalone]


#28631

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-06-02 07:02 -0700
Message-ID<rr0po9ts5buf9mcluigffell7t21qqk87d@4ax.com>
In reply to#28581
On Wed, 28 May 2014 10:00:57 -0500, leif.roar@invalid.com (Leif Roar
Moldskred) wrote, quoted or indirectly quoted someone who said :

>Maven or Gradle. I prefer Gradle myself, but Maven is more widely used.

I have been reading the free Gradle eBook, which infuriatingly wants
to tell me how to update SQL databases, not how to build a jar.

From what I have read so far, it seems, like Maven and Ivy,  Gradle
does not do class dependency management, only jar dependency
management.  If even one class in a jar is need, the whole jar
included in the distributed jar, and the contents of any jars any of
those classes need.  You tell it which jars depend on which. Therefore
the problem of dynamic loading of classes unknown at compile time does
not come up. The disadvantage is your jars are bloated.

Is that correct?
-- 
Roedy Green Canadian Mind Products http://mindprod.com
In former times, people who craved absolute power became gangsters.
Today, they become computer programmers.

[toc] | [prev] | [next] | [standalone]


#28582

FromJoerg Meier <joergmmeier@arcor.de>
Date2014-05-28 17:38 +0200
Message-ID<v4brij4nkp9x$.m3ehg2jxc1ke$.dlg@40tude.net>
In reply to#28575
On Wed, 28 May 2014 06:47:24 -0700, Roedy Green wrote:

> What strategy do you use to prepare a list of classes to include in a
> jar?

Maven.

> How do you ensure you did not forget anything?

Happens on its own.

> How do you ensure you did not include anything needlessly?

ProGuard set to shrink.

Liebe Gruesse,
		Joerg

-- 
Ich lese meine Emails nicht, replies to Email bleiben also leider
ungelesen.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web