Downloaded and Updated CVS -- now what??

KevDog
KevDog's picture

Joined: 2003-06-03
Posts: 26
Posted: Tue, 2003-06-03 19:35

Ive downloaded and updated the cvs version of gallery remote using cygwin. Ive perused all the files Ive downloaded, however what do I do now to builld/install the cvs version. I currently have the 1.0 version downloaded as .exe with the self installer up and running using a win2k sp3 platform. Do I in the installed version directory copy over the files with the cvs version????

Thanks for your help.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2003-06-04 01:19

OK, so now you have the CVS version, you can run Gallery Remote like a developer would: use 'ant' to build (this assumes you have Ant setup), 'ant run' to run, 'ant zip' to create a zip patch file that you can apply to the installed .exe version.

 
KevDog
KevDog's picture

Joined: 2003-06-03
Posts: 26
Posted: Wed, 2003-06-04 02:49

Hey not to be rude, however could either tell me or provide a link of what I am supposed to do once I have Ant installed. I downloaded and installed all the jre, sdk, jre documentation, and ant makes and installed them. Now what??

 
joel558
joel558's picture

Joined: 2003-04-10
Posts: 93
Posted: Wed, 2003-06-04 06:24

look in {ant folder}/docs/manual and opening index.html and look under the section called "installing ant" it has here:

Quote:
-Add the bin directory to your path.
-Set the ANT_HOME environment variable to the directory where you installed Ant. On some operating systems the ant wrapper scripts can guess ANT_HOME (Unix dialects and Windows NT/2000) - but it is better to not rely on this behavior.
-Optionally, set the JAVA_HOME environment variable (see the Advanced section below). This should be set to the directory where your JDK is installed.

I did the last two straight in the ant.bat file by adding the lines:

set ANT_HOME=c:\netpbm\ant
set JAVA_HOME=C:\j2sdk

after
@echo off
of course replace those paths with the ones on your computer,

to add the bin directory to the path, either do that on the command line before calling ant by entering "set PATH=%PATH%;C:\path_to_ant\bin", or by editing the path variable in windows(how depends on your windows version)

then open a command window in the directory in which you downloaded the gallery_remote cvs files into and type the ant command you wish to run, ie "ant run" "ant zip" "ant jar" etc etc

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2003-06-04 07:09

Wow, thanks for the step-by step instructions, joel558!

 
KevDog
KevDog's picture

Joined: 2003-06-03
Posts: 26
Posted: Wed, 2003-06-04 16:26

This is beginning to seem to much trouble than what it is worth.

I set the ant_home, java_home, and added the ant\bin directory to the path. Because Im running win2k, I even set these variable by hand under the system environment variables, because I noticed when I closed the command window, these variables set by use of the ant.bat file disappeared. Anyway, when running the ant.bat file, the script is choking when it reaches the following:

java.exe -classpath "A long classpath defined here!!" "-Dant=c:\ant: org.apache.tools.ant.Main

Buildfile: build.xml does not exist!
Build failed

I see the above statement is being called under the :runAntWithJikes section of the ant.bat file.

What exactly is going on, or does it even matter??

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2003-06-04 16:32

You have to run the ant.bat script from within the Gallery Remote directory (which you got from CVS); this is the directory that contains build.xml.

Please remember that running Gallery Remote from CVS is primarily useful for developers (who also usually already know how to use ant).

If you want to use beta drops, you can download the "bleeding Edge" builds from the website.

 
KevDog
KevDog's picture

Joined: 2003-06-03
Posts: 26
Posted: Wed, 2003-06-04 17:11

Alright, I know Im like a bad toothache that wont go away, however, I am making some progress, thanks to your help.

Using the suggestion from last post, I am now receiving a compiling error that the jsx package does not exist. I did some research and see it is just basically a class that extends basic i/o for objects. Im not sure however where this library is located. I looked in the lib directory, however as expected is probably been precompiled in another lib module. I currently using jsk1.4.1_03.

Thanks

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2003-06-04 17:17

:) If you take a look in the lib/ directory (in the GR main directory), you'll probably notice that the size of the jar is 0.

This should now be fixed, so if you just cvs update that directory, you'll get the correct library.

Good luck, and thanks for sticking through this...

 
KevDog
KevDog's picture

Joined: 2003-06-03
Posts: 26
Posted: Wed, 2003-06-04 21:14

Well you were definitely right about the file size. It jumped from 1 to 200kb. After updating the directory, I had no problems compiling the code. It seemed to run ok, without any problems. One last question -- it seems to run fairly well independently. If I dont apply it as a patch, what functionality would I lose. Thank you for the help

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2003-06-04 22:46

You can run GR independantly, using 'ant run', with full functionality. This is how I run most of the time.

Patching a version of Gallery Remote that you installed with InstallAnywhere has the benefit that it is launched and looks like a native Windows application.

 
KevDog
KevDog's picture

Joined: 2003-06-03
Posts: 26
Posted: Thu, 2003-06-05 00:18

Just an academic exercise -- I make the .zip file using ant zip resulting in gallery_remote.zip

How do I apply the patch to the installed version 1.0.

I have the unxutil patch, however when I read the help description it seemed to describe scenarios I didnt have. Obviously Im missing a step.

Thanks :o

 
joel558
joel558's picture

Joined: 2003-04-10
Posts: 93
Posted: Thu, 2003-06-05 03:44

I believe you just need to extract the files in the zip file into the directory that version 1.0 is installed in.
It will overwrite the old galleryremote.jar file and all the other updated files.

then you also need to edit the file "gallery remote.lax" which is in the directory that 1.0 is in. change line 15 to:

lax.class.path=GalleryRemote.jar;lax.jar;lib\jsx1.0.7.4.jar

you only need to do that once.

now you should be able run gallery remote using the "gallery remote.exe" file

 
KevDog
KevDog's picture

Joined: 2003-06-03
Posts: 26
Posted: Thu, 2003-06-05 04:00

Thanks to everyone who helped me with this topic. It worked great in the end. Hopefully this very basic primer will also help other novices like me! 8)