You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jc...@locus.apache.org on 2000/12/06 06:38:59 UTC

cvs commit: jakarta-velocity/examples README.txt test.sh

jcastura    00/12/05 21:38:59

  Modified:    examples README.txt test.sh
  Log:
  jar now 0.71
  
  Revision  Changes    Path
  1.4       +1 -1      jakarta-velocity/examples/README.txt
  
  Index: README.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/examples/README.txt,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- README.txt	2000/12/02 06:00:07	1.3
  +++ README.txt	2000/12/06 05:38:58	1.4
  @@ -14,7 +14,7 @@
   If you wish to recompile the example, remember to include the velocity jar in your classpath, or 
   just specify it on the command line :
   
  -	javac -classpath .:../bin/velocity-0.7.jar Example.java
  +	javac -classpath .:../bin/velocity-0.71.jar Example.java
   
   (If there is a problem, make sure that the filename of the velocity jar hasn't changed. We can 
   be forgetful at times :)
  
  
  
  1.4       +1 -1      jakarta-velocity/examples/test.sh
  
  Index: test.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/examples/test.sh,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- test.sh	2000/12/02 05:54:44	1.3
  +++ test.sh	2000/12/06 05:38:58	1.4
  @@ -1,5 +1,5 @@
   echo "Running Example with input file 'example.vm'"
   
  -java -cp .:../bin/velocity-0.7.jar Example example.vm  > output
  +java -cp .:../bin/velocity-0.71.jar Example example.vm  > output
   
   echo "Output of Example is in the file 'output'"
  
  
  

Re: cvs commit: jakarta-velocity/examples README.txt test.sh

Posted by Rafal Krzewski <Ra...@e-point.pl>.
Christoph Reck wrote:

> java -cp ../bin/classes:`ls -1r ../bin/*.jar |tr '\n' ':'`. Example example.vm  > output
> 
> (someone with a Linux box please confirm that 'tr' is avialable, 
>  otherwise 'sed' could be used).

Yeah tr is available. Why wouldn't it?

Rafal
--
Rafal Krzewski
Senior Internet Developer
mailto:Rafal.Krzewski@e-point.pl
+48 22 8534830 http://e-point.pl


Re: cvs commit: jakarta-velocity/examples README.txt test.sh

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Christoph Reck wrote:
> 
> Instead of:
> >   +java -cp .:../bin/velocity-0.71.jar Example example.vm  > output
> 
> Maybe it would be better to do:
> 
> java -cp ../bin/classes:`ls -1r ../bin/*.jar |tr '\n' ':'`. Example example.vm  > output

Or just iteratively add every jar in ../bin on to the classpath...
 
geir

> (someone with a Linux box please confirm that 'tr' is avialable,
>  otherwise 'sed' could be used).
> 
> To avoid having to change the file everytime the jar version is
> updated.
> 
> :) Christoph

-- 
Geir Magnusson Jr.                               geirm@optonline.com

Re: cvs commit: jakarta-velocity/examples README.txt test.sh

Posted by Christoph Reck <Ch...@dlr.de>.
Instead of:
>   +java -cp .:../bin/velocity-0.71.jar Example example.vm  > output

Maybe it would be better to do:

java -cp ../bin/classes:`ls -1r ../bin/*.jar |tr '\n' ':'`. Example example.vm  > output

(someone with a Linux box please confirm that 'tr' is avialable, 
 otherwise 'sed' could be used).

To avoid having to change the file everytime the jar version is
updated.

:) Christoph