Skip to content
Merged
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
18 changes: 11 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ buildscript {
}

dependencies {
classpath 'com.bmuschko:gradle-tomcat-plugin:2.3'
classpath 'com.bmuschko:gradle-tomcat-plugin:2.5'
//classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3'
//classpath 'org.ajoberstar:gradle-git:1.6.0'
}
Expand Down Expand Up @@ -58,18 +58,22 @@ dependencies {

providedCompile('javax.servlet:servlet-api:2.5')

def tomcatVersion = '7.0.79' // must not exclude eclipse compiler since version 7.0.59
def tomcatVersion = '8.5.16'

tomcat(
"org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}",
)
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:8.5.2",
"org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}"

runtime('log4j:log4j:1.2.17')
}


tomcat {
httpProtocol = 'org.apache.coyote.http11.Http11Nio2Protocol'
ajpProtocol = 'org.apache.coyote.ajp.AjpNio2Protocol'
}


// When testing you can specify your local PHP executable as a system property with
// -Dphp_exec=/path/to/php-executabale on the Gradle command line
// Default value is "php" which should work both on Linux and Windows for most standard PHP installations.
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
1 change: 0 additions & 1 deletion src/main/java/io/soluble/pjb/bridge/JavaBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,6 @@ public IContext getContext() {
* @param name The session name, if any
* @param clientIsNew true, if the client wants a new session
* @param timeout session timeout in seconds. If timeout is <= 0, the session will never expire @return The session context
* @return
* @throws Exception
* @see io.soluble.pjb.bridge.ISession
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import io.soluble.pjb.bridge.IJavaBridgeFactory;
import io.soluble.pjb.bridge.ISession;
import io.soluble.pjb.bridge.JavaBridge;

/**
* Interface that the ContextFactories must implement.
Expand All @@ -41,7 +42,7 @@ public interface IContextFactory extends IJavaBridgeFactory {
*
* @param id The fresh id
* @see io.soluble.pjb.bridge.http.ContextFactory#recycle()
* @see io.soluble.pjb.bridge.Request#setBridge(io.soluble.pjb.JavaBridge)
* @see io.soluble.pjb.bridge.Request#setBridge(JavaBridge)
* @see io.soluble.pjb.bridge.Request#recycle()
*/
public void recycle(String id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ public AbstractPhpScriptContext(ScriptContext ctx) {

private int exitCode;

/**
* {@inheritDoc}
*/
protected Writer writer;

public Writer getWriter() {
Expand All @@ -59,9 +56,6 @@ public Writer getWriter() {
return writer;
}

/**
* {@inheritDoc}
*/
protected Writer errorWriter;

public Writer getErrorWriter() {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/io/soluble/pjb/script/PhpScriptContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ public String getSocketName() {
}

/**
* @return
* @deprecated
*/
@Override
Expand All @@ -218,7 +217,6 @@ public String getRedirectString() {

/**
* @param webPath
* @return
* @deprecated
*/
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ protected SimpleServletContextFactory(Servlet servlet, ServletContext ctx, HttpS
protected void setSessionFactory(HttpServletRequest req) {
}

/**
* {@inheritDoc}
*/
public ISession getSimpleSession(String name, boolean clientIsNew,
int timeout) {
throw new IllegalStateException("Named sessions not supported by servlet.");
Expand Down