Not sure why my text got garbled. (unless it's just my mail client)
Here's what I posted:
http://www.edgetechservices.net/ant-get.htm
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitchtx
Yahoo: jmitchtx
MSN: [EMAIL PROTECTED]
Skype: jmitchtx
----- Original Message -----
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "MyFaces Development" <dev@myfaces.apache.org>
Sent: Saturday, June 25, 2005 12:52 AM
Subject: Re: Proposal: Elimiante jar files from SVN
----- Original Message -----
From: "Oliver Rossmueller" <[EMAIL PROTECTED]>
To: "MyFaces Development" <dev@myfaces.apache.org>
Sent: Friday, June 24, 2005 10:08 PM
Subject: Re: Proposal: Elimiante jar files from SVN
James Mitchell wrote:
Unless I missed it somewhere, no one has mentioned the extra bloat in
your source distributions (if you include the binary dependencies).
James,
you need the binary dependencies anyway to build the project, so what is
your point? You download the source distribution with libs included or
you download the source distribution without libs and ant does the lib
download afterwards. The sum of required network traffic is the same.
That's true for the developer. But I was also considering ASF hardware
and bandwidth. Again, that's a drop in the bucket if only MyFaces were
doing it. But you are not. I have had this same conversation (beating
the same dead horse) with developers on other projects, both here, sf.net,
and many, MANY closed source projects.
Oliver, I'm having a hard time understanding your point.
I can see how one wouldn't care about disk space and bandwidth,
because you (nor I) currently pay for neither. But how much more
"simple" can building a project be then calling "ant". That's all you
should have to do to build the project.
Please explain to me what makes it "not simple" if the ant script
automatically goes out and gets the dependencies the first time you
run the script (and never has to do it again unless a dependency is
added or changed) ??
It get's "not simple" as soon as the automatic download fails for
whatever reason. I had problems in the past with maven-based builds
because the attempt to download required libs ended up in corrupt jars
in the local repository because ibiblio was not available and all the
downloaded jars actually were http 404/500 error pages. The result is a
long list of strange error messages talking about corrupt zip files and
stuff like that. What you plan to do with ant is just another way to the
same potential problem.
I'm not sure why you keep talking about corrupt binaries. This is not
even a valid case. At least not with any of the last 5 versions of Ant
that I have used.
Let me explain:
<?xml version="1.0"?>
<project name="Test build" default="test">
<target name="test">
<echo>Getting the correct JAR </echo>
<get dest="commons-beanutils.jar"
usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0.jar"/>
<echo>Attempt to get an invalid JAR (with ignoreerrors=true)</echo> <get
dest="commons-beanutils-8.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0-(does-not-exist).jar"/>
<echo>Attempt to get an invalid JAR (with ignoreerrors=false)</echo> <get
dest="commons-beanutils-9.jar" usetimestamp="true" ignoreerrors="false"
src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0-(does-not-exist).jar"/>
</target></project>Ok, so here's what I get when I run
[EMAIL PROTECTED]
~/test$ [EMAIL PROTECTED] ~/test$ antBuildfile: build.xmltest:
[echo] Getting the correct JAR [get]
Getting:http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0.jar
[get] To: C:\cygwin\home\jmitchell\test
\commons-beanutils.jar [echo] Attempt to get an invalid JAR (with
ignoreerrors=true) [get]
Getting:http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0-(does-not-exist).jar
[get] To: C:\cygwin\home\jmitchell\test\commons-beanutils-8.jar [get]
Error opening connection java.io.IOException [get] Error opening
connection java.io.IOException [get] Error opening connection
java.io.IOException [get] Can't
gethttp://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0-(does-not-exist).jar
toC:\cygwin\home\jmitchell\test\commons-beanutils-8.jar [echo] Attempt
to get an invalid JAR (with ignoreerrors=false) [get]
Getting:http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0-(does-not-exist).jar
[get] To: C:\cygwin\home\jmitchell\test\commons-beanutils-9.jar [get]
Error opening connection java.io.IOException [get] Error opening
connection java.io.IOException [get]
Error opening connection java.io.IOException [get] Can't
gethttp://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0-(does-not-exist).jar
toC:\cygwin\home\jmitchell\test\commons-beanutils-9.jarBUILD
FAILEDC:\cygwin\home\jmitchell\test\build.xml:19: Can't
gethttp://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.7.0-(does-not-exist).jar
toC:\cygwin\home\jmitchell\test\commons-beanutils-9.jarTotal time: 4
[EMAIL PROTECTED] ~/test$ lsbuild.xml
commons-beanutils.jar--------------------------------------------------------Notice
there are no corrupted JARs, just a nice clean message as to what Antwas
trying to do, but couldn't.>> I'm sure you are able to deal with problems
like that. If you know the> build mechanism it won't be a big deal. But
there will always be users> who checkout the MyFaces sources for the first
time. Consider they want> to get a fix before the next release is out. If
automatic download does> not work for them - I don't say this will happen
every day, but it's a> possible scenario - they are stuck. They just
called ant, they don't> know and don't want to know what's going on behind
the scenes. What they> want is a working MyFaces built from sources.Why do
you continue to make this assumption that someone is smart enough tobe
able to download and configure both SVN and Ant, and checkout theproject,
yet so dumb that they would "throw it in the trash" on the firsterror.
That's not making a lot of sense to me. That's why we have a userslist,
and forums, and books, and many articles and blogs about the same.--James
MitchellSoftware Engineer / Open Source EvangelistConsulting / Mentoring /
FreelanceEdgeTech, Inc.http://www.edgetechservices.net/678.910.8017AIM:
jmitchtxYahoo: jmitchtxMSN: [EMAIL PROTECTED]: jmitchtx