Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ info_txt() {
}

check_prerequisites() {
for i in $PREREQ; do
for i in $PREREQ; do
if [[ -e ../.rebuild_${i}_dependent ]]; then
if [[ -e ${JAR} && ${JAR} -nt ../.rebuild_${i}_dependent ]]; then
touch .rebuild
Expand All @@ -29,12 +29,12 @@ check_prerequisites() {
true
}
check_jar() {
if ! [[ -e ${JAR} ]]; then
if ! [[ -e ${JAR} ]]; then
echo -n "no jar! "; touch .rebuild
fi
}
check_modified() {
find src/ -type f -newer ${JAR} |
check_modified() {
find src/ -type f -newer ${JAR} |
grep -v '\.svn' && {
echo -n ${JAR} $PWD "modification found! "
touch .rebuild
Expand All @@ -56,19 +56,19 @@ do_rebuild() {
}
rebuild() {
if test -e .rebuild; then
echo "yes"
echo "yes"
do_rebuild
else
echo "no"
fi
}

printtesterrors() {
[ -e target/surefire-reports/ ] &&
{
echo "Tests in error in $TARGET:";
cat target/surefire-reports/*.txt|grep '<<<'|grep '^[^()]*[(][^(]*[)]' -Eo ||
echo "(none)"
[ -e target/surefire-reports/ ] &&
{
echo "Tests in error in $TARGET:";
cat target/surefire-reports/*.txt|grep '<<<'|grep '^[^()]*[(][^(]*[)]' -Eo ||
echo "(none)"
echo
}
}
Expand Down
32 changes: 16 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makefile for Jake
#
# provides a dependency system to avoid duplicate builds, tests
# provides a dependency system to avoid duplicate builds, tests
# and packaging.

VERSION="1.0-SNAPSHOT"
Expand All @@ -22,13 +22,13 @@ help:
start: install
cd gui; ${MVN} -o exec:java

# multistart: allow jake to run multiple instances (no dependency
# multistart: allow jake to run multiple instances (no dependency
# system)
multistart: install
cd gui; ${MVN} -o exec:java -Dcom.jakeapp.gui.ignoresingleinstance

# @depstart: start gui with dependency system
depstart: gui
depstart: gui
cd gui; ${MVN} exec:java

# instantquit: start gui and quit it immediatly (for debugging spring)
Expand All @@ -40,7 +40,7 @@ quickstart: gui
cd gui; ${MVN} exec:java -Dexec.args=${PROJECTFOLDER}

# console : start console-gui (commander)
console: commander
console: commander
cd commander; ${MVN} exec:java -Dexec.mainClass=com.jakeapp.gui.console.JakeCommander

xmpp-console: commander
Expand All @@ -49,15 +49,15 @@ xmpp-console: commander
# building & installing #

# @install : simply install everything (no dependency system)
install:
install:
mvn -Dmaven.test.skip=true install

# @jar : deploy to a single jar file
jar:
#${MVN} clean
${MVN} install -Dmaven.test.skip=true
mkdir -p releases
cd releases && rm -rf temp && mkdir -p temp
cd releases && rm -rf temp && mkdir -p temp
cd releases/temp && unzip ../../gui/target/gui-swing-${VERSION}.one-jar.jar && cp -v ../../{core,ics,ics-xmpp}/target/*.jar main/ && rm -f ../jake-current.jar && jar cvfm ../jake-current.jar meta-inf/manifest.mf .
cd releases; rm -rf temp
@echo release ready under releases/jake-current.jar
Expand Down Expand Up @@ -98,13 +98,13 @@ package-win: jar
rm -f releases/jake.xml releases/jakeapp.ico
@echo Winows Package: releases/Jake.exe
@echo TODO create installer with NULLSOFT or use other db path

package-linux: jar
@echo Creating Linux Package...
rm -f releases/Jake.bin
cat launcher/jake.sh releases/jake-current.jar > releases/jake.bin
chmod +x releases/jake.bin
#tar cjvf releases/jake.tar.bz2 releases/jake.bin
#tar cjvf releases/jake.tar.bz2 releases/jake.bin

@echo Linux Package: releases/Jake.bin

Expand All @@ -121,7 +121,7 @@ commander: core
rm -f .rebuild* */.rebuild

# core : build core component
core: availablelater fss ics ics-xmpp core-dao-hibernate-threading
core: availablelater fss ics ics-xmpp core-dao-hibernate-threading
@bash .build.sh ${VERSION} $@ "$^"
rm -f .rebuild_ics_dependent .rebuild_ics-xmpp_dependent

Expand Down Expand Up @@ -164,7 +164,7 @@ ics-xmpp: ics
clean:
${MVN} clean

# mrproper : clean build environment and uninstall from local
# mrproper : clean build environment and uninstall from local
# repository
mrproper: clean
rm -rf ~/.m2/repository/com/{jakeapp,doublesignal}/
Expand All @@ -178,7 +178,7 @@ lazyclean:
mkdir fss/target/
mv .backup.fss-${VERSION}.jar fss/target/fss-${VERSION}.jar

# others #
# others #

generateDaos:
# use SpringThreadBroker.getInstance() for global dao's
Expand All @@ -192,10 +192,10 @@ generateDaos:
bash generateDao.sh core/src/main/java/com/jakeapp/core/dao/HibernateLogEntryDao.java "SpringThreadBroker.getThreadForObject(this)"
bash generateDao.sh core/src/main/java/com/jakeapp/core/dao/HibernateNoteObjectDao.java "SpringThreadBroker.getThreadForObject(this)"

#
# You can add arguments to the maven call by setting the MVNEXTRAARGS
#
# You can add arguments to the maven call by setting the MVNEXTRAARGS
# environment variable.
# The dependency system does only work with the coreutils package, i.e., only on
# Linux.
#
# The dependency system does only work with the coreutils package, i.e., only on
# Linux.
#
.PHONY: install jar packages package-win package-mac package-linux availablelater gui core fss fss-tests-base ics ics-xmpp commander start depstart instantquit quickstart console clean mrproper lazyclean
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public abstract class Commander {
public void run() {
Commander.this.onShutdown();
}

});

public Commander(String[] args) {
Expand Down Expand Up @@ -68,7 +68,7 @@ protected void run(InputStream instream, boolean startwithhelp) {
} catch (IOException e) {
}
}

@SuppressWarnings("unchecked")
private void addCommands() {
// we are so cool, we use reflection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class CmdManager {
private List<Command> commands = new LinkedList<Command>();

private boolean status_ok = true;

public CmdManager(){
commands.add(new Command(){
@Override
Expand All @@ -32,10 +32,10 @@ public boolean handleLine(String line) {
}
return false;
}

});
}

public void registerCommand(Command c) {
commands.add(c);
}
Expand Down Expand Up @@ -77,7 +77,7 @@ public void help() {
System.out.println("\t\t" + c.getHelpString());
}
}

public void stop() {
status_ok = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
public abstract class Command {
/**
* @param line full input line
* @return is this the right command? false if you are not the right command. true if the
* command got handled (independent of success)
* @return is this the right command? false if you are not the right command. true if the
* command got handled (independent of success)
*/
public abstract boolean handleLine(String line);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public boolean handleLine(String line) {

/**
* @param args parameters. first element is the command name (has been verified already)
* @return is this the right command? false if you are not the right command. true if the
* command got handled (independent of success)
* @return is this the right command? false if you are not the right command. true if the
* command got handled (independent of success)
*/
public abstract boolean handleArguments(String[] args);
}
6 changes: 3 additions & 3 deletions commander/src/site/apt/index.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ About the Commander
The commander (or gui-console) is a text-based interface to Jake.

It is meant mainly for testing, demonstration of features and automation.

However, it supports all commands of Jake.

In the future, it is possible that it can be useful as a headless client
for jake, mirroring and re-distributing changes.


Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class AnnounceRuns extends TestDBEnabledTestCase {
private static final String obj = "00000000-0000-000b-0000-000000000001";

private static final String nonexistantobj = "FFFFFFFF-0000-000b-0000-000000000001";

@Override
protected String getDbTemplateName() {
return "oneuserWithOneProjectContainingNotes";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.io.InputStream;

/**
* strings to inputstream converter
* strings to inputstream converter
* @author johannes
*/
class FifoStreamer extends InputStream {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* This class is (atm) for running manually in the IDE and not for inclusion in
* build automation
*
*
* @author johannes
*/
public class JakeCommanderRuns extends TmpdirEnabledTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected String getDbTemplateName() {
public void setup() throws Exception {
super.setup();
FSTestCommons.recursiveDelete(new File(".jake"));

String pwd = new File(".").getAbsolutePath();
System.out.println("You are now in " + pwd);
File projectdir = new File(pwd, project);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
@RunWith(PrerequisiteAwareClassRunner.class)
public class PrimitivePokeRun extends TmpdirEnabledTestCase {



private String user;

@Override
@Before
public void setup() throws Exception {
FSTestCommons.recursiveDelete(new File(".jake"));
super.setup();

this.user = XmppTestEnvironment.getXmppId("poker");
XmppTestEnvironment.assureUserExists(XmppTestEnvironment.getHost(), "poker", "poker");
}
Expand All @@ -42,7 +42,7 @@ public void setup() throws Exception {
@Prerequisite(checker = XmppTestEnvironment.class)
public void bugRun() {
FifoStreamer fifo = new FifoStreamer();
fifo.addLine("coreLogin " + this.user + " poker");
fifo.addLine("coreLogin " + this.user + " poker");
fifo.addLine("login");
fifo.addLine("openProject " + this.tmpdir);
fifo.addLine("startProject");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ public void setup() throws Exception {
File workdir = new File(".");
copyFiles(templatedir, workdir, ".svn");
*/

// The brutal way
FSTestCommons.recursiveDelete(new File(".jake"));
File workdir = new File(".");
copyFiles(templatedir, workdir, ".svn");


File dbdir = new File(".jake");
dbdir.mkdir();
dbdir.mkdir();
Assert.assertTrue(folderExists(".jake"));
log.info("Directory prepared with database template. ");
}
Expand Down
36 changes: 18 additions & 18 deletions documentation/management/statusbericht-1/intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,44 @@ \section{Status}
Ein Kickoff-Treffen und ein Kickoff-Treffen mit dem Tutor wurden abgehalten.
Es wurde auf Projekt und Rolleneinteilung geeinigt.

Das Projekt wurde in Untergruppen geteilt, die teilweise schon mit der Arbeit
begonnen haben:
Das Projekt wurde in Untergruppen geteilt, die teilweise schon mit der Arbeit
begonnen haben:

\subsection{GUI}
Peter und Chris beschäftigen sich mit der GUI, genauer gesagt mit der Analyse
der Workflows/typischen Arbeitsszenarien, sowie später der Analyse der
derzeitigen Umsetzung.
Peter und Chris beschäftigen sich mit der GUI, genauer gesagt mit der Analyse
der Workflows/typischen Arbeitsszenarien, sowie später der Analyse der
derzeitigen Umsetzung.

Das Dokument Workflows wird in Woche 45 erwartet, das Dokument Analyse in
Das Dokument Workflows wird in Woche 45 erwartet, das Dokument Analyse in
Woche 46. Darauffolgend soll später ein Dokument der Implementierungsvorschläge
entstehen.

\subsection{Codereview}
Dominik und Christopher analysieren den derzeitigen Codebestand auf
strukturelle Mängel. Das Codereviewdokument, das aus Problemen,
Behebungsvorschlägen und Ideen für neue Features besteht, ist bereits zur Hälfte
Dominik und Christopher analysieren den derzeitigen Codebestand auf
strukturelle Mängel. Das Codereviewdokument, das aus Problemen,
Behebungsvorschlägen und Ideen für neue Features besteht, ist bereits zur Hälfte
fertiggestellt.

Das Codereviewdokument wird zu Beginn der Woche 45 erwartet.

\subsection{XMPP}
Johannes hat die Library "Muse" für die Implementierung des XMPP-Backends
ausgewählt. Entscheidend war Reife der Entwicklung, Vollständigkeit der
Johannes hat die Library "Muse" für die Implementierung des XMPP-Backends
ausgewählt. Entscheidend war Reife der Entwicklung, Vollständigkeit der
Implementierung (XEPs) und Lizenzen. Da die Libraries allerdings sehr ähnliche
Konzepte verfolgen, sollte ein Austauschen, falls zu einem späteren Zeitpunkt
Konzepte verfolgen, sollte ein Austauschen, falls zu einem späteren Zeitpunkt
notwendig, nicht übermäßig aufwändig sein.

Die Implementierung wird agil stattfinden: Entwicklungszyklenweise (etwa 2
Wochen) wird geplant und implementiert. Die Entwicklung wird mit Woche 45
Die Implementierung wird agil stattfinden: Entwicklungszyklenweise (etwa 2
Wochen) wird geplant und implementiert. Die Entwicklung wird mit Woche 45
beginnen.

\subsection{Qualitätsreview}
Das Review der bestehenden Dokumente wurde von Simon durchgeführt. Sie sind im
Wiki unter review:requirements und review:test\_cases verfügbar und auch diesem
Das Review der bestehenden Dokumente wurde von Simon durchgeführt. Sie sind im
Wiki unter review:requirements und review:test\_cases verfügbar und auch diesem
Bericht beigelegt.

Das Review der Qualitätssicherung wird sich in den nächsten etwa 2 Wochen mit
der Verbesserung der Spezifikation des Projekts beschäftigen, in Zusammenarbeit
Das Review der Qualitätssicherung wird sich in den nächsten etwa 2 Wochen mit
der Verbesserung der Spezifikation des Projekts beschäftigen, in Zusammenarbeit
mit den technischen Architekten.

\section{Statusindikatoren}
Expand Down
Loading