File: run.bat

package info (click to toggle)
jftp 1.52%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,852 kB
  • sloc: java: 22,890; xml: 186; sh: 26; makefile: 19
file content (42 lines) | stat: -rwxr-xr-x 817 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
rem Please remember to use java-conform paths (no ! etc)

rem put "rem" in front of "goto jar" if you want to compile the source and run a patched version
goto jar
rem goto compile



:jar
echo === running from jar ====
cd .\build\jars

if "%1" == ""      java -jar jftp.jar 
if not "%1" == ""  java -jar jftp.jar %1

cd..
cd..

goto end



:compile
cd .\src\java

echo === compiling ====
javac net\sf\jftp\JFtp.java

echo === starting from new classes (remember: not all classes will be rebuilt!) ====
rem ressources like images have to be included, jar is easiest way
if "%1" == ""      java -cp %classpath%;..\..\build\jars\jftp.jar  net.sf.jftp.JFtp
if not "%1" == ""  java -cp %classpath%;..\..\build\jars\jftp.jar  net.sf.jftp.JFtp

cd..
cd..

goto end



:end