Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
231c48a
minor corrections & additions
Jan 20, 2017
a5e5864
Revert "minor corrections & additions"
Jan 20, 2017
3ac2b7c
correct project version, elevate code compatibiliy, correct junit ver…
Jan 20, 2017
ae145a8
minor corrections & additions
Jan 20, 2017
a326cba
configure gradle build properties
Jan 22, 2017
c8d83d2
misc updates
Jan 22, 2017
c069d95
adjust ant targets for generating sources with new project layout
Jan 22, 2017
a8f5e91
cleanup
Jan 22, 2017
471c3ea
remove superfluous package javax.script (included in JRE since 1.6)
Jan 22, 2017
532d6dd
move to test sources
Jan 22, 2017
8539788
moved to resources
Jan 22, 2017
9446d7a
moved to test sources
Jan 22, 2017
2f3580e
moved from server/ to resources
Jan 22, 2017
bc1cb71
add jacoco code coverage plugin
Jan 23, 2017
bb4025b
another round...
Jan 23, 2017
22c3cfa
moved from server/php/java to src/main/java/io/soluble/pjb
Jan 23, 2017
ae760d2
cleanup
Jan 23, 2017
0a7fa06
another one...
Jan 23, 2017
a87bbd2
adjust php source generators to new package name
Jan 23, 2017
1cf616d
unit test for script package moved from server/php/java/test to test …
Jan 23, 2017
892f47b
WEB-INF moved to source tree
Jan 24, 2017
34f8d7a
add war build
Jan 24, 2017
c5bf487
and again...
Jan 24, 2017
6c0f23c
code cleanup & moderizations
Jan 24, 2017
26d6b8f
copy generated sources to new webapp dir in source tree
Jan 24, 2017
312e8ed
Merge pull request #9 from cplerch/issue_7
belgattitude Jan 24, 2017
c65b075
Changlog updated
belgattitude Jan 24, 2017
2b03a39
Changlog updated
belgattitude Jan 24, 2017
8e2dd84
Added credits and contributors
belgattitude Jan 24, 2017
3e3c606
Cleanup removal of obsolete files, working #11
belgattitude Jan 24, 2017
293c755
cleanup unnecessary files
Jan 24, 2017
573ff07
getting better all the time...
Jan 24, 2017
720ce5d
fixing code gen targets genJavaInc, genJavaProxyPhP
Jan 24, 2017
1a8fdff
Merge pull request #13 from cplerch/issue_7
belgattitude Jan 24, 2017
ee4af2c
comment hardcoded php command
Jan 24, 2017
0f4f40e
fix ant targets bug: keep java directory
Jan 24, 2017
c465191
cleanup temp file
Jan 24, 2017
3f9fc4c
fix version number
Jan 24, 2017
57f979c
fix ant targets bug: keep java directory
Jan 24, 2017
7a2ec39
Pass -Dphp_exec= to Ant targets
Jan 25, 2017
52cbdca
Revert "Pass -Dphp_exec= to Ant targets"
Jan 25, 2017
2c2aca1
Pass -Dphp_exec to Ant targets; Make genrating Java.inc, JavaProxy.ph…
Jan 25, 2017
3654311
task tomcatRunWar should not be used
Jan 25, 2017
e2d2f45
minor changes
Jan 25, 2017
3c363e9
code quality enhancements
Jan 26, 2017
af13746
code quality enhancements
Jan 26, 2017
7d3eb2c
add runtime logger implementation
Jan 26, 2017
9f2270f
code quality enhancements
Jan 26, 2017
ad442f2
code quality enhancements
Jan 26, 2017
d78c3e1
build enhancments
Jan 27, 2017
00391e0
keep generated files (generate only on demand)
Jan 27, 2017
55b3a7b
corrections web.xml
Jan 27, 2017
e09bf12
code quality enhancements
Jan 27, 2017
316b3aa
add sourceJar and javadocJar to build
Jan 28, 2017
a52ac11
Merge remote-tracking branch 'origin/codeQA' into develop
Jan 28, 2017
6d62699
cleanup gradle build file
Jan 28, 2017
2c03720
correct error in package name
Jan 28, 2017
54bd867
correct all javadoc errors
Jan 28, 2017
c88a3d4
correct all javadoc errors
Jan 28, 2017
6f449ff
some corrections because of failing tests
Jan 28, 2017
7289319
add basic setup for maven publishing (TBC)
Jan 28, 2017
4315768
Preliminary support for travis
belgattitude Jan 30, 2017
96e04e1
Doc update
belgattitude Jan 30, 2017
03961a0
Doc update
belgattitude Jan 30, 2017
0689eaf
Attempt to fix travis
belgattitude Jan 30, 2017
bdc87ab
Attempt to fix travis
belgattitude Jan 30, 2017
e2bb638
Attempt to fix travis
belgattitude Jan 30, 2017
2c707e2
Fixing travis ?
belgattitude Jan 30, 2017
b30d008
Again test travis
belgattitude Jan 30, 2017
a06a2cc
Again test travis again
belgattitude Jan 30, 2017
0b23aa0
More work on develop
belgattitude Jan 30, 2017
9ece400
Updated credits
belgattitude Jan 30, 2017
503d4cd
minor correction/clarification
cplerch Feb 1, 2017
78d487a
Prep for publish
belgattitude Feb 1, 2017
caae9a2
Merge branch 'develop' of https://github.com/belgattitude/php-java-br…
belgattitude Feb 1, 2017
623c0f5
Prep for publish
belgattitude Feb 1, 2017
160212c
minor corrections/additions
cplerch Feb 2, 2017
e659554
Doc added for travis
belgattitude Feb 2, 2017
b1b6151
Added sources for gradle wrapper
belgattitude Feb 3, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 18 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
.idea
.idea/
.gradle/
.projectKnowledge/
nbproject/
nbbuild.xml
.nb-gradle/
.nb-gradle-properties
build/
dist/
bin/
lib/
doc/API/
.classpath
manifest.mf
*.iml
/dist
/bin
/nbproject
/doc/API
/.classpath
/server/META-INF/java/JavaProxy.php
/server/META-INF/java/Java.inc
/server/php/java/bridge/JavaProxy.java
/server/php/java/bridge/LauncherWindows.java
/server/php/java/bridge/LauncherWindows2.java
/server/php/java/bridge/LauncherWindows3.java
/server/php/java/bridge/LauncherUnix.java
/server/php/java/bridge/JavaInc.java
/server/php/java/bridge/LauncherWindows4.java
/server/php/java/bridge/PhpDebuggerPHP.java

*.lock
*.log
devNull
out/
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
dist: trusty
sudo: required

language: java

jdk:
- oraclejdk8

#services:
# - mysql

os:
- linux

before_script:
# for debugging purposes
- php --version
- chmod +x gradlew

script:
# Regular test suite
- ./gradlew test
# Launch a server
- ./gradlew clean tomcatRun
# Some debug to see if server has started
- cat ./tomcat.log
- sleep 10
- cat ./tomcat.log
- sudo netstat -nlp | grep :8090
# Launch the soluble-japha test suite
- ./.travis/run_soluble_japha_phpunit_tests.sh

after_failure:
- cat ./tomcat.log

after_success:
#- ./gradlew build jacocoTestReport
- bash <(curl -s https://codecov.io/bash)


1 change: 1 addition & 0 deletions .travis/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
soluble-japha
90 changes: 90 additions & 0 deletions .travis/phpunit.travis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="true"
bootstrap="./test/bootstrap.php"
>


<php>
<!--
AUTORUN_PJB_STANDALONE : boolean

* Only work on Linux system with a JVM installed *

If you want to automatically download, install and run
the original PHPJavaBridge standalone server. This
feature allows CI systems to run tests with minimal
configuration.An correct example of servlet_address
could be http://127.0.0.1:8083/servlet.phpjavabridge,
Feel free to change the port.

(if false, you have to get a tomcat server running)
-->
<!--
<server name="AUTORUN_PJB_STANDALONE" value="true" />
<server name="PJB_SERVLET_ADDRESS" value="http://127.0.0.1:8083/servlet.phpjavabridge" />
-->
<!--
to run the test suite on tomcat please increase
the heap memory in /etc/default/tomcat7:

JAVA_OPTS="-Djava.awt.headless=true -Xmx512m -XX:+UseConcMarkSweepGC"
-->

<server name="AUTORUN_PJB_STANDALONE" value="false" />


<server name="PJB_SERVLET_ADDRESS" value="http://localhost:8090/servlet.phpjavabridge" />


<!--
Configure connection to mysql server for testing
mysql jdbc connection
-->
<server name="JAPHA_ENABLE_JDBC_TESTS" value="false" />

<server name="MYSQL_DRIVER" value="Mysqli" />
<server name="MYSQL_HOSTNAME" value="127.0.0.1" />
<server name="MYSQL_USERNAME" value="root" />
<server name="MYSQL_PASSWORD" value="" />
<server name="MYSQL_DATABASE" value="testdb" />

<server name="PHPUNIT_CACHE_DIR" value="./test/tmp/cache" />
<ini name="date.timezone" value="Europe/Brussels"/>

<ini name="default_charset" value="UTF-8"/>
<ini name="display_errors" value="On"/>
<ini name="error_reporting" value="E_ALL"/>
<!--
// Produce errors if different from UTF-8
<ini name="default_charset" value="latin1"/>
-->
</php>

<testsuites>
<testsuite name="soluble/japha">
<directory>./test/src/SolubleTest/Japha</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src</directory>
<exclude>
<file>./src/Soluble/Japha/Bridge/Driver/Pjb62/SimpleParser.php</file>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="./test/build/logs/clover.xml"/>
<log type="coverage-html" target="./test/build/html-coverage" charset="UTF-8" yui="true" highlight="false" lowUpperBound="35" highLowerBound="70"/>
</logging>
</phpunit>
63 changes: 63 additions & 0 deletions .travis/run_soluble_japha_phpunit_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/usr/bin/env bash
#
# Travis specific post-test script to run the test suite provided
# in the latest release of https://github.com/belgattitude/soluble-japha client.
#
#
# usage:
# > ./run_soluble_japha_phpunit_tests.sh
#
# requirements:
# - php >= 5.6, php 7+
# - git
# - composer
# - linux
#
# @author Vanvelthem Sébastien
#

set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECT_DIR="$SCRIPT_DIR/.."
JAPHA_DIR="$SCRIPT_DIR/soluble-japha"

install_soluble_japha_master() {

echo "[*] Installing master branch of soluble-japha";

# 1. Clone the soluble-japha project (if not already exists)
if [ ! -d $JAPHA_DIR ]; then
git clone https://github.com/belgattitude/soluble-japha.git $JAPHA_DIR
fi

# 2. Clone the soluble-japha project
cd $JAPHA_DIR

# 3. Checkout latest release
#git fetch --tags
#latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
#git checkout ${latestTag}

git checkout master

# 4. Run composer install
composer install

# 5. Restore path
cd $PROJECT_DIR
}


runPHPUnit() {
cd $JAPHA_DIR
echo "[*] Running phpunit"
cp ../phpunit.travis.xml .
./vendor/bin/phpunit -c ./phpunit.travis.xml -v
}


# Here's the steps
install_soluble_japha_master;
runPHPUnit;

34 changes: 23 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,43 @@
# CHANGELOG
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## 6.2.xx (2017-xx-xx)

### Added

- Preliminary support for gradle [see #5](https://github.com/belgattitude/php-java-bridge/issues/5)
- Build: Support for Gradle (still relying on ant build.xml), see [#5](https://github.com/belgattitude/php-java-bridge/issues/5) and [#9](https://github.com/belgattitude/php-java-bridge/pull/9)
- Build: New tasks added in gradle 'jacocoTestReport', see P/R [#9](https://github.com/belgattitude/php-java-bridge/pull/9)
- Test: Resurrect existing unit tests
- Test: test and coverage using Jacoco added, see P/R [#9](https://github.com/belgattitude/php-java-bridge/pull/9)
- Doc: trick to build when default interpreter is php 7+, see [#4](https://github.com/belgattitude/php-java-bridge/issues/4)
- License: MIT license where applicable, see [#10](https://github.com/belgattitude/php-java-bridge/issues/10)

### Improvements
### Removed

- Some more doc updates
- Removed obsolete javax.script sources

### Fixes

- Ant build: solution for building when php7+ [see #4](https://github.com/belgattitude/php-java-bridge/issues/4)
### Changed

- Moved namespace `php.java` into `io.soluble.pjb`, see P/R [#9](https://github.com/belgattitude/php-java-bridge/pull/9)
- Project directory structure _mavenized_, sources moved from './server' to './src/main/java', see P/R [#9](https://github.com/belgattitude/php-java-bridge/pull/9)


## 6.2.10 (2017-01-15)

### Changes
### Changed

- Removal embedded php-cgi binaries [see #3](https://github.com/belgattitude/php-java-bridge/issues/3)
- Source code indentation
- README.md: added Recipe for building and deploying on tomcat

### Fixes
### Fixed

- Added a `build-php5.6.xml` ant config


## 6.2.1 (2010-06-01)

For reference see the doc/legacy/Changelog
8 changes: 0 additions & 8 deletions CREDITS

This file was deleted.

21 changes: 21 additions & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Credits

## Authors

All credits for the original implementation:

- Jost Boekemeier
- Andre Felipe Machado
- Sam Ruby
- Kai Londenberg
- Nandika Jayawardana
- Sanka Samaranayake

## Contributors

Contributors and/or maintainers for the [unofficial fork](https://github.com/belgattitude/php-java-bridge) and post 6.2.1 versions

* [Christian P. Lerch](https://github.com/cplerch) - Java refactorings and modernizations
* [Sébastien Vanvelthem](https://github.com/belgattitude) - Fork initiator and client rewrite.


61 changes: 0 additions & 61 deletions CVS_RELEASE.sh

This file was deleted.

Loading