Merge pull request #5 from hopskipnfall/add-instructions

Add Ant build instructions and github CI.
This commit is contained in:
Jgunishka 2023-01-22 17:36:51 +02:00 committed by GitHub
commit e9c0629aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 5 deletions

22
.github/workflows/ant.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Java CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Ant
run: ant build

View File

@ -5,3 +5,17 @@ Original EmuLinker can be found here: https://github.com/monospacesoftware/emuli
This is unofficially updated version of EmulinkeSF, based on original latest source v72.3 (09-20-2009).
This version includes bug fixes and other improvements.
******************
## Development
To build the jar using Ant (tested at version 1.10.7) run:
```shell
$ ant build
```
To run the jar with Bash:
```shell
$ java -Xms64m -Xmx128m -cp ./conf:./build/emulinker.jar:./lib/commons-collections-3.1.jar:./lib/commons-configuration-1.1.jar:./lib/commons-el.jar:./lib/commons-lang-2.1.jar:./lib/commons-logging.jar:./lib/commons-pool-1.2.jar:./lib/log4j-1.2.12.jar:./lib/nanocontainer-1.0-beta-3.jar:./lib/picocontainer-1.1.jar:./lib/xstream-1.1.2.jar:./lib/commons-codec-1.3.jar:./lib/commons-httpclient-3.0-rc3.jar org.emulinker.kaillera.pico.PicoStarter
```

View File

@ -21,7 +21,7 @@
<delete>
<fileset dir="./build" includes="**/*.class" />
</delete>
<javac srcdir="./src" destdir="./build" includes="**/*.java" failonerror="true" debug="on">
<javac srcdir="./src" destdir="./build" includes="**/*.java" failonerror="true" debug="on" encoding="iso-8859-1" includeantruntime="false">
<classpath refid="project.class.path" />
</javac>
<echo message="Compiling complete." />

3
build/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Ignore everything in this directory, but Ant will complain if we don't have a build/ directory, so leave this .gitignore as a placeholder.
*
!.gitignore

View File

@ -2,13 +2,9 @@ package org.emulinker.kaillera.controller.v086.protocol;
import java.nio.ByteBuffer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.emulinker.kaillera.controller.messaging.*;
import org.emulinker.util.*;
import com.sun.corba.se.impl.encoding.BufferManagerFactory;
public abstract class V086Message extends ByteBufferMessage
{
protected int number;