[jdom-interest] Re: jdom-b4.zip line termination

Brett McLaughlin brett.mclaughlin at lutris.com
Fri Jun 9 17:55:48 PDT 2000


Alex Chaffee wrote:
> 
> > The source files in jdom-b4.zip are terminated with '\r \r \n' (two
> > carriage returns), which results in double-spacing in many Java editors.
> >
> > Looks like a translate problem.
> >
> > The source files in jdom-b4-src.tar.gz, on the other hand, are
> > terminated in one of the standard ways: '\r \n'
> 
> Actually, for me, the .tar.gz build.sh contains DOS-style line
> endings, which means that sh won't execute it properly on Unix. (It's
> looking for an executable file called "/bin/sh\r", not "/bin/sh", so
> it dies with "bash: ./build.sh: No such file or directory".) Also,
> that file is not flagged executable (chmod +x).
> 
> On the other hand, if a .bat file contains Unix-style line endings,
> then *it* won't work right.
> 
> Perhaps the build script should run a program to convert line endings
> correctly prior to tarring build.sh and build.bat, no matter what
> platform the files were edited on, version-controlled on, and built
> on.  It would be fun to write an Ant task class that does that, if
> there isn't one already, so if you want me to do that, let me know.
> 
> Also, strangely, the build.bat file doesn't work on Windows 98. It
> fails with Command not found or some such. It's probably some subtle
> difference between NT and 98 BAT syntax.
> 
> Also, I'd like it if the .jar file were just called "jdom.jar"
> regardless of which version of JDOM it contains. It means I can just
> unzip to upgradge, rather than unzip and rename, or unzip and
> relink. Note that's just for the JAR; the tarball should definitely be
> named per version.

Briefly...

  I am not going to address the specific issues, but a more general
comment - we (Jason and I) have had some long talks this week about the
build process, and do want to automate lots of this sort of thing... so
it's coming ;-)

-Brett

> 
>  - A
> 
> P.S. Is there a difference between jdom-b4.zip and jdom-b4-src.tar.gz?
> If not, you might want to rename it jdom-b4-src.zip.
> 
> ---
> Alex Chaffee                       mailto:alex at jguru.com
> jGuru - Java News and FAQs         http://www.jguru.com/alex/
> Creator of Gamelan                 http://www.gamelan.com/
> Founder of Purple Technology       http://www.purpletech.com/
> Curator of Stinky Art Collective   http://www.stinky.com/
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list