0
我想用eclipse的相同方式創建一個可運行jar,但是從CLI創建。我正在使用buildbot,我希望能夠自動創建,例如,每晚自動構建,但也可以運行。編譯並創建一個可運行的jar文件,如eclipse,通過cli
我的Makefile:
JFLAGS = -g
JC = javac
JAR = jar
JARFLAGS = cfe ./bin/java.jar alone.Gameloop -C resources . -C ./
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $(wildcard alone/*.java)
#$(JC) $(JFLAGS) $*.java
CLASSES = \
$(wildcard alone/*.java) \
# alone/Enter.java \
# alone/GameLoop.java \
# alone/ImageRender.java \
# Blah.java \
# Library.java \
# Main.java
all: classes
default: classes
packages: jars
jars:
#echo $(JAR) $(JARFLAGS) $(CLASSES:.java=.class)
#false
$(JAR) $(JARFLAGS) $(CLASSES:.java=.class)
classes: $(CLASSES:.java=.class)
clean:
$(RM) *.class
感謝您的幫助! :)
你從此得到什麼錯誤? – sarnold 2011-12-18 02:32:08