first commit
This commit is contained in:
parent
81943c578b
commit
c91077f776
7
compile.sh
Executable file
7
compile.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
. "$DIR/conf.sh"
|
||||
|
||||
find "$SRCJAVA" -name "*.java" > javasources.txt
|
||||
javac -d "$BUILDDIR/java" @javasources.txt
|
||||
rm javasources.txt
|
6
conf.sh
Normal file
6
conf.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
MAINCLASS="me.lixko.tatrop.Main"
|
||||
BUILDDIR="$DIR/build"
|
||||
BUILDJAVA="$BUILDDIR/java"
|
||||
SRCPHP="$DIR/src/php"
|
||||
SRCJAVA="$DIR/src/java"
|
5
run.sh
Executable file
5
run.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
. "$DIR/conf.sh"
|
||||
|
||||
php "$SRCPHP/main.php" -m "$MAINCLASS" -c "$BUILDJAVA" $@
|
7
src/java/eu/lixko/tatrop/Main.java
Normal file
7
src/java/eu/lixko/tatrop/Main.java
Normal file
@ -0,0 +1,7 @@
|
||||
package me.lixko.tatrop;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello, World!");
|
||||
}
|
||||
}
|
9
src/php/Tatrop/JvmLoader.php
Normal file
9
src/php/Tatrop/JvmLoader.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?
|
||||
namespace Tatrop;
|
||||
|
||||
class JvmLoader {
|
||||
|
||||
function __construct() {
|
||||
echo "constructed\n";
|
||||
}
|
||||
}
|
0
src/php/Tatrop/Parser/ClassFileParser.php
Normal file
0
src/php/Tatrop/Parser/ClassFileParser.php
Normal file
19
src/php/main.php
Normal file
19
src/php/main.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
function printUsage() {
|
||||
echo "main.php -m (main class) -c (classpath)\n";
|
||||
}
|
||||
|
||||
$args = getopt("m:c:");
|
||||
if (!isset($args['m']) || !isset($args['c'])) {
|
||||
printUsage();
|
||||
die();
|
||||
}
|
||||
|
||||
$javamain = $args['m'];
|
||||
$javacp = $args['c'];
|
||||
|
||||
|
||||
echo "main $javamain\n";
|
||||
echo "cp $javacp\n";
|
||||
|
Loading…
Reference in New Issue
Block a user