Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
9e598357
Commit
9e598357
authored
Apr 26, 2013
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本 0.6.0
parent
3e17bb66
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
697 additions
and
704 deletions
+697
-704
core/pom.xml
core/pom.xml
+223
-223
core/src/main/java/org/b3log/solo/SoloServletListener.java
core/src/main/java/org/b3log/solo/SoloServletListener.java
+2
-2
core/src/main/java/org/b3log/solo/processor/UpgradeProcessor.java
.../main/java/org/b3log/solo/processor/UpgradeProcessor.java
+16
-23
pom.xml
pom.xml
+1
-1
war/bae/pom.xml
war/bae/pom.xml
+1
-1
war/gae/pom.xml
war/gae/pom.xml
+1
-1
war/h2/pom.xml
war/h2/pom.xml
+120
-120
war/mysql/pom.xml
war/mysql/pom.xml
+116
-116
war/pom.xml
war/pom.xml
+110
-110
war/src/main/webapp/WEB-INF/appengine-web.xml
war/src/main/webapp/WEB-INF/appengine-web.xml
+107
-107
No files found.
core/pom.xml
View file @
9e598357
This diff is collapsed.
Click to expand it.
core/src/main/java/org/b3log/solo/SoloServletListener.java
View file @
9e598357
...
...
@@ -58,7 +58,7 @@ import org.json.JSONObject;
* B3log Solo servlet listener.
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.9.
8, Apr 18
, 2013
* @version 1.0.9.
9, Apr 26
, 2013
* @since 0.3.1
*/
public
final
class
SoloServletListener
extends
AbstractServletListener
{
...
...
@@ -66,7 +66,7 @@ public final class SoloServletListener extends AbstractServletListener {
/**
* B3log Solo version.
*/
public
static
final
String
VERSION
=
"0.
5.6
"
;
public
static
final
String
VERSION
=
"0.
6.0
"
;
/**
* Logger.
...
...
core/src/main/java/org/b3log/solo/processor/UpgradeProcessor.java
View file @
9e598357
...
...
@@ -26,7 +26,6 @@ import org.b3log.latke.Latkes;
import
org.b3log.latke.RuntimeEnv
;
import
org.b3log.latke.mail.MailService
;
import
org.b3log.latke.mail.MailServiceFactory
;
import
org.b3log.latke.model.Plugin
;
import
org.b3log.latke.model.User
;
import
org.b3log.latke.repository.*
;
import
org.b3log.latke.repository.jdbc.util.Connections
;
...
...
@@ -54,13 +53,10 @@ import org.json.JSONObject;
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @author <a href="mailto:dongxu.wang@acm.org">Dongxu Wang</a>
* @version 1.1.1.
8, Mar 11
, 2013
* @version 1.1.1.
9, Apr 26
, 2013
* @since 0.3.1
*/
@RequestProcessor
// TODO: 060
// 1. Add column Preference.feedOutputCnt
// 2. Add column User.userURL
public
final
class
UpgradeProcessor
{
/**
...
...
@@ -73,11 +69,6 @@ public final class UpgradeProcessor {
*/
private
ArticleRepository
articleRepository
=
ArticleRepositoryImpl
.
getInstance
();
/**
* Page repository.
*/
private
PageRepository
pageRepository
=
PageRepositoryImpl
.
getInstance
();
/**
* User repository.
*/
...
...
@@ -142,10 +133,10 @@ public final class UpgradeProcessor {
return
;
}
if
(
"0.5.
5
"
.
equals
(
version
))
{
v05
5ToV056
();
if
(
"0.5.
6
"
.
equals
(
version
))
{
v05
6ToV060
();
}
else
{
LOGGER
.
log
(
Level
.
WARNING
,
"Attempt to skip more than one version to upgrade. Expected: 0.5.
0
; Actually: {0}"
,
version
);
LOGGER
.
log
(
Level
.
WARNING
,
"Attempt to skip more than one version to upgrade. Expected: 0.5.
6
; Actually: {0}"
,
version
);
if
(!
sent
)
{
notifyUserByEmail
();
sent
=
true
;
...
...
@@ -162,12 +153,12 @@ public final class UpgradeProcessor {
}
/**
* Upgrades from version 05
5 to version 056
.
* Upgrades from version 05
6 to version 060
.
*
* @throws Exception upgrade fails
*/
private
void
v05
5ToV056
()
throws
Exception
{
LOGGER
.
info
(
"Upgrading from version 05
5 to version 056
...."
);
private
void
v05
6ToV060
()
throws
Exception
{
LOGGER
.
info
(
"Upgrading from version 05
6 to version 060
...."
);
articleRepository
.
setCacheEnabled
(
false
);
...
...
@@ -179,11 +170,9 @@ public final class UpgradeProcessor {
// Upgrades preference model
final
JSONObject
preference
=
preferenceRepository
.
get
(
Preference
.
PREFERENCE
);
preference
.
put
(
Preference
.
VERSION
,
"0.
5.6
"
);
preference
.
put
(
Preference
.
VERSION
,
"0.
6.0
"
);
preferenceRepository
.
update
(
Preference
.
PREFERENCE
,
preference
);
upgradeUsers
();
final
RuntimeEnv
runtimeEnv
=
Latkes
.
getRuntimeEnv
();
if
(
RuntimeEnv
.
LOCAL
==
runtimeEnv
||
RuntimeEnv
.
BAE
==
runtimeEnv
)
{
...
...
@@ -191,9 +180,13 @@ public final class UpgradeProcessor {
final
Statement
statement
=
connection
.
createStatement
();
final
String
tablePrefix
=
Latkes
.
getLocalProperty
(
"jdbc.tablePrefix"
);
final
String
tableName
=
Strings
.
isEmptyOrNull
(
tablePrefix
)
?
Plugin
.
PLUGIN
:
tablePrefix
+
'_'
+
Plugin
.
PLUGIN
;
String
tableName
=
Strings
.
isEmptyOrNull
(
tablePrefix
)
?
"preference"
:
tablePrefix
+
"_preference"
;
statement
.
execute
(
"ALTER TABLE "
+
tableName
+
" ADD setting text"
);
statement
.
execute
(
"ALTER TABLE "
+
tableName
+
" ADD feedOutputCnt int"
);
tableName
=
Strings
.
isEmptyOrNull
(
tablePrefix
)
?
"user"
:
tablePrefix
+
"_user"
;
statement
.
execute
(
"ALTER TABLE "
+
tableName
+
" ADD userURL varchar(255)"
);
connection
.
commit
();
}
...
...
@@ -207,12 +200,12 @@ public final class UpgradeProcessor {
}
LOGGER
.
log
(
Level
.
SEVERE
,
"Upgrade failed."
,
e
);
throw
new
Exception
(
"Upgrade failed from version 05
5 to version 056
"
);
throw
new
Exception
(
"Upgrade failed from version 05
6 to version 060
"
);
}
finally
{
articleRepository
.
setCacheEnabled
(
true
);
}
LOGGER
.
info
(
"Upgraded from version 05
5 to version 056
successfully :-)"
);
LOGGER
.
info
(
"Upgraded from version 05
6 to version 060
successfully :-)"
);
}
/**
...
...
pom.xml
View file @
9e598357
...
...
@@ -11,7 +11,7 @@
<groupId>
org.b3log
</groupId>
<artifactId>
solo
</artifactId>
<packaging>
pom
</packaging>
<version>
0.
5.6
</version>
<version>
0.
6.0
</version>
<name>
B3log Solo
</name>
<url>
https://github.com/b3log/b3log-solo
</url>
<description>
...
...
war/bae/pom.xml
View file @
9e598357
...
...
@@ -19,7 +19,7 @@
<parent>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-war
</artifactId>
<version>
0.
5.6
</version>
<version>
0.
6.0
</version>
</parent>
<properties>
...
...
war/gae/pom.xml
View file @
9e598357
...
...
@@ -19,7 +19,7 @@
<parent>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-war
</artifactId>
<version>
0.
5.6
</version>
<version>
0.
6.0
</version>
</parent>
<properties>
...
...
war/h2/pom.xml
View file @
9e598357
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: B3log Solo (H2) standard Servlet container POM.
Version: 1.0.0.1, Jan 4, 2013
Author: Liang Ding
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-h2
</artifactId>
<packaging>
war
</packaging>
<name>
B3log Solo (H2)
</name>
<description>
B3log Solo (H2) standard Servlet container war.
</description>
<parent>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-war
</artifactId>
<version>
0.
5.6
</version>
</parent>
<properties>
<!-- JDBC Drivers -->
<h2.version>
1.3.170
</h2.version>
<netbeans.hint.deploy.server>
Tomcat
</netbeans.hint.deploy.server>
</properties>
<dependencies>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
latke
</artifactId>
<exclusions>
<!-- Database Connections Pool for local-->
<exclusion>
<groupId>
com.jolbox
</groupId>
<artifactId>
bonecp
</artifactId>
</exclusion>
<exclusion>
<groupId>
c3p0
</groupId>
<artifactId>
c3p0
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
servlet-api
</artifactId>
<version>
2.5
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
latke-repository-h2
</artifactId>
</dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<artifactId>
h2
</artifactId>
<version>
${h2.version}
</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
../src/main/resources
</directory>
<excludes>
<exclude>
etc/
</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
com.mycila.maven-license-plugin
</groupId>
<artifactId>
maven-license-plugin
</artifactId>
<configuration>
<header>
../../src/main/resources/etc/header.txt
</header>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
2.6
</version>
<executions>
<execution>
<id>
copy-resources
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<outputDirectory>
${basedir}/target/${project.build.finalName}/WEB-INF/classes
</outputDirectory>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<finalName>
b3log-solo-h2
</finalName>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: B3log Solo (H2) standard Servlet container POM.
Version: 1.0.0.1, Jan 4, 2013
Author: Liang Ding
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-h2
</artifactId>
<packaging>
war
</packaging>
<name>
B3log Solo (H2)
</name>
<description>
B3log Solo (H2) standard Servlet container war.
</description>
<parent>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-war
</artifactId>
<version>
0.
6.0
</version>
</parent>
<properties>
<!-- JDBC Drivers -->
<h2.version>
1.3.170
</h2.version>
<netbeans.hint.deploy.server>
Tomcat
</netbeans.hint.deploy.server>
</properties>
<dependencies>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
latke
</artifactId>
<exclusions>
<!-- Database Connections Pool for local-->
<exclusion>
<groupId>
com.jolbox
</groupId>
<artifactId>
bonecp
</artifactId>
</exclusion>
<exclusion>
<groupId>
c3p0
</groupId>
<artifactId>
c3p0
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
servlet-api
</artifactId>
<version>
2.5
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
latke-repository-h2
</artifactId>
</dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<artifactId>
h2
</artifactId>
<version>
${h2.version}
</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
../src/main/resources
</directory>
<excludes>
<exclude>
etc/
</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
com.mycila.maven-license-plugin
</groupId>
<artifactId>
maven-license-plugin
</artifactId>
<configuration>
<header>
../../src/main/resources/etc/header.txt
</header>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
2.6
</version>
<executions>
<execution>
<id>
copy-resources
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<outputDirectory>
${basedir}/target/${project.build.finalName}/WEB-INF/classes
</outputDirectory>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<finalName>
b3log-solo-h2
</finalName>
</build>
</project>
war/mysql/pom.xml
View file @
9e598357
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: B3log Solo (MySQL) standard Servlet container POM.
Version: 1.0.1.2, Jan 4, 2013
Author: Liang Ding
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-mysql
</artifactId>
<packaging>
war
</packaging>
<name>
B3log Solo (MySQL)
</name>
<description>
B3log Solo (MySQL) standard Servlet container war.
</description>
<parent>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-war
</artifactId>
<version>
0.
5.6
</version>
</parent>
<properties>
<!-- JDBC Drivers -->
<mysql-connector-java.version>
5.1.18
</mysql-connector-java.version>
<netbeans.hint.deploy.server>
Tomcat
</netbeans.hint.deploy.server>
</properties>
<dependencies>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
latke
</artifactId>
<exclusions>
<!-- H2 database for local -->
<exclusion>
<groupId>
com.h2database
</groupId>
<artifactId>
h2
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
servlet-api
</artifactId>
<version>
2.5
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
latke-repository-mysql
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
${mysql-connector-java.version}
</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
../src/main/resources
</directory>
<excludes>
<exclude>
etc/
</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
com.mycila.maven-license-plugin
</groupId>
<artifactId>
maven-license-plugin
</artifactId>
<configuration>
<header>
../../src/main/resources/etc/header.txt
</header>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
2.6
</version>
<executions>
<execution>
<id>
copy-resources
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<outputDirectory>
${basedir}/target/${project.build.finalName}/WEB-INF/classes
</outputDirectory>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<finalName>
b3log-solo-mysql
</finalName>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: B3log Solo (MySQL) standard Servlet container POM.
Version: 1.0.1.2, Jan 4, 2013
Author: Liang Ding
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-mysql
</artifactId>
<packaging>
war
</packaging>
<name>
B3log Solo (MySQL)
</name>
<description>
B3log Solo (MySQL) standard Servlet container war.
</description>
<parent>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-war
</artifactId>
<version>
0.
6.0
</version>
</parent>
<properties>
<!-- JDBC Drivers -->
<mysql-connector-java.version>
5.1.18
</mysql-connector-java.version>
<netbeans.hint.deploy.server>
Tomcat
</netbeans.hint.deploy.server>
</properties>
<dependencies>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
latke
</artifactId>
<exclusions>
<!-- H2 database for local -->
<exclusion>
<groupId>
com.h2database
</groupId>
<artifactId>
h2
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
servlet-api
</artifactId>
<version>
2.5
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
latke-repository-mysql
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
${mysql-connector-java.version}
</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
../src/main/resources
</directory>
<excludes>
<exclude>
etc/
</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
com.mycila.maven-license-plugin
</groupId>
<artifactId>
maven-license-plugin
</artifactId>
<configuration>
<header>
../../src/main/resources/etc/header.txt
</header>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
2.6
</version>
<executions>
<execution>
<id>
copy-resources
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<outputDirectory>
${basedir}/target/${project.build.finalName}/WEB-INF/classes
</outputDirectory>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<finalName>
b3log-solo-mysql
</finalName>
</build>
</project>
war/pom.xml
View file @
9e598357
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: B3log Solo WAR POM.
Version: 2.0.1.6, Dec 27, 2012
Author: Liang Ding
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-war
</artifactId>
<packaging>
pom
</packaging>
<name>
B3log Solo (WAR)
</name>
<description>
B3log Solo standard Servlet container war.
</description>
<parent>
<groupId>
org.b3log
</groupId>
<artifactId>
solo
</artifactId>
<version>
0.
5.6
</version>
</parent>
<modules>
<module>
gae
</module>
<module>
bae
</module>
<module>
mysql
</module>
<module>
h2
</module>
</modules>
<dependencies>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-core
</artifactId>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<excludes>
<exclude>
etc/
</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
2.1.1
</version>
<configuration>
<webXml>
../src/main/webapp/WEB-INF/web.xml
</webXml>
<warSourceDirectory>
../src/main/webapp
</warSourceDirectory>
</configuration>
</plugin>
<plugin>
<groupId>
org.b3log.latke
</groupId>
<artifactId>
maven-min-plugin
</artifactId>
<version>
${maven-min-plugin.version}
</version>
<inherited>
false
</inherited>
<configuration>
<suffix>
.min
</suffix>
<!-- Common#MINI_POSTFIX_VALUE -->
<adminJSs>
<param>
admin.js
</param>
<param>
editor.js
</param>
<param>
editorTinyMCE.js
</param>
<param>
editorKindEditor.js
</param>
<param>
editorCodeMirror.js
</param>
<param>
tablePaginate.js
</param>
<param>
article.js
</param>
<param>
comment.js
</param>
<param>
articleList.js
</param>
<param>
draftList.js
</param>
<param>
pageList.js
</param>
<param>
others.js
</param>
<param>
linkList.js
</param>
<param>
preference.js
</param>
<param>
pluginList.js
</param>
<param>
userList.js
</param>
<param>
commentList.js
</param>
<param>
plugin.js
</param>
<param>
main.js
</param>
<param>
about.js
</param>
</adminJSs>
<cssSourceDir>
${basedir}/src/main/webapp/css
</cssSourceDir>
<cssTargetDir>
${basedir}/src/main/webapp/css
</cssTargetDir>
<jsSourceDir>
${basedir}/src/main/webapp/js
</jsSourceDir>
<jsTargetDir>
${basedir}/src/main/webapp/js
</jsTargetDir>
</configuration>
<executions>
<execution>
<phase>
process-resources
</phase>
<goals>
<goal>
min
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: B3log Solo WAR POM.
Version: 2.0.1.6, Dec 27, 2012
Author: Liang Ding
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-war
</artifactId>
<packaging>
pom
</packaging>
<name>
B3log Solo (WAR)
</name>
<description>
B3log Solo standard Servlet container war.
</description>
<parent>
<groupId>
org.b3log
</groupId>
<artifactId>
solo
</artifactId>
<version>
0.
6.0
</version>
</parent>
<modules>
<module>
gae
</module>
<module>
bae
</module>
<module>
mysql
</module>
<module>
h2
</module>
</modules>
<dependencies>
<dependency>
<groupId>
org.b3log
</groupId>
<artifactId>
solo-core
</artifactId>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<excludes>
<exclude>
etc/
</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
2.1.1
</version>
<configuration>
<webXml>
../src/main/webapp/WEB-INF/web.xml
</webXml>
<warSourceDirectory>
../src/main/webapp
</warSourceDirectory>
</configuration>
</plugin>
<plugin>
<groupId>
org.b3log.latke
</groupId>
<artifactId>
maven-min-plugin
</artifactId>
<version>
${maven-min-plugin.version}
</version>
<inherited>
false
</inherited>
<configuration>
<suffix>
.min
</suffix>
<!-- Common#MINI_POSTFIX_VALUE -->
<adminJSs>
<param>
admin.js
</param>
<param>
editor.js
</param>
<param>
editorTinyMCE.js
</param>
<param>
editorKindEditor.js
</param>
<param>
editorCodeMirror.js
</param>
<param>
tablePaginate.js
</param>
<param>
article.js
</param>
<param>
comment.js
</param>
<param>
articleList.js
</param>
<param>
draftList.js
</param>
<param>
pageList.js
</param>
<param>
others.js
</param>
<param>
linkList.js
</param>
<param>
preference.js
</param>
<param>
pluginList.js
</param>
<param>
userList.js
</param>
<param>
commentList.js
</param>
<param>
plugin.js
</param>
<param>
main.js
</param>
<param>
about.js
</param>
</adminJSs>
<cssSourceDir>
${basedir}/src/main/webapp/css
</cssSourceDir>
<cssTargetDir>
${basedir}/src/main/webapp/css
</cssTargetDir>
<jsSourceDir>
${basedir}/src/main/webapp/js
</jsSourceDir>
<jsTargetDir>
${basedir}/src/main/webapp/js
</jsTargetDir>
</configuration>
<executions>
<execution>
<phase>
process-resources
</phase>
<goals>
<goal>
min
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
war/src/main/webapp/WEB-INF/appengine-web.xml
View file @
9e598357
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
Description: Web deployment descriptor on GAE. See
http://code.google.com/intl/en/appengine/docs/java/config/appconfig.html
for more details.
Version: 1.0.
3.11, Feb 4, 2013
Author: Liang Ding
-->
<appengine-web-app
xmlns=
"http://appengine.google.com/ns/1.0"
>
<application>
solo-demo
</application>
<version>
0
56
</version>
<sessions-enabled>
true
</sessions-enabled>
<threadsafe>
true
</threadsafe>
<system-properties>
<property
name=
"java.util.logging.config.file"
value=
"WEB-INF/classes/logging.properties"
/>
</system-properties>
<static-files>
<!-- Uses the STANDARD Ant Path Pattern to configure these paths! -->
<include
path=
"/favicon.ico"
/>
<include
path=
"/favicon.png"
/>
<include
path=
"/robots.txt"
/>
<include
path=
"/js/**.js"
/>
<include
path=
"/js/**/*.js"
/>
<include
path=
"/js/**.css"
/>
<include
path=
"/js/**/*.css"
/>
<include
path=
"/js/**.htm"
/>
<include
path=
"/js/**/*.htm"
/>
<include
path=
"/js/**.html"
/>
<include
path=
"/js/**/*.html"
/>
<include
path=
"/js/**.gif"
/>
<include
path=
"/js/**/*.gif"
/>
<include
path=
"/js/**.png"
/>
<include
path=
"/js/**/*.png"
/>
<include
path=
"/js/**.jpg"
/>
<include
path=
"/js/**/*.jpg"
/>
<include
path=
"/skins/**.css"
/>
<include
path=
"/skins/**/*.css"
/>
<include
path=
"/skins/**.js"
/>
<include
path=
"/skins/**/*.js"
/>
<include
path=
"/skins/**.png"
/>
<include
path=
"/skins/**/*.png"
/>
<include
path=
"/skins/**.jpg"
/>
<include
path=
"/skins/**/*.jpg"
/>
<include
path=
"/skins/**.swf"
/>
<include
path=
"/skins/**/*.swf"
/>
<include
path=
"/skins/**.gif"
/>
<include
path=
"/skins/**/*.gif"
/>
<include
path=
"/css/**.css"
/>
<include
path=
"/css/**/*.css"
/>
<include
path=
"/images/**.png"
/>
<include
path=
"/images/**/*.png"
/>
<include
path=
"/images/**.jpg"
/>
<include
path=
"/images/**/*.jpg"
/>
<include
path=
"/images/**.gif"
/>
<include
path=
"/images/**/*.gif"
/>
<include
path=
"/plugins/**.css"
/>
<include
path=
"/plugins/**/*.css"
/>
<include
path=
"/plugins/**.js"
/>
<include
path=
"/plugins/**/*.js"
/>
<include
path=
"/plugins/**.png"
/>
<include
path=
"/plugins/**/*.png"
/>
<include
path=
"/plugins/**.jpg"
/>
<include
path=
"/plugins/**/*.jpg"
/>
<include
path=
"/plugins/**.swf"
/>
<include
path=
"/plugins/**/*.swf"
/>
<include
path=
"/plugins/**.gif"
/>
<include
path=
"/plugins/**/*.gif"
/>
<include
path=
"/plugins/**.html"
/>
<include
path=
"/plugins/**/*.html"
/>
<include
path=
"/plugins/**.htm"
/>
<include
path=
"/plugins/**/*.htm"
/>
<include
path=
"/CHANGE_LOGS.html"
/>
<include
path=
"/README.txt"
/>
<include
path=
"/LICENSE.txt"
/>
</static-files>
</appengine-web-app>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
Description: Web deployment descriptor on GAE. See
http://code.google.com/intl/en/appengine/docs/java/config/appconfig.html
for more details.
Version: 1.0.
4.2, Apr 26, 2013
Author: Liang Ding
-->
<appengine-web-app
xmlns=
"http://appengine.google.com/ns/1.0"
>
<application>
solo-demo
</application>
<version>
0
60
</version>
<sessions-enabled>
true
</sessions-enabled>
<threadsafe>
true
</threadsafe>
<system-properties>
<property
name=
"java.util.logging.config.file"
value=
"WEB-INF/classes/logging.properties"
/>
</system-properties>
<static-files>
<!-- Uses the STANDARD Ant Path Pattern to configure these paths! -->
<include
path=
"/favicon.ico"
/>
<include
path=
"/favicon.png"
/>
<include
path=
"/robots.txt"
/>
<include
path=
"/js/**.js"
/>
<include
path=
"/js/**/*.js"
/>
<include
path=
"/js/**.css"
/>
<include
path=
"/js/**/*.css"
/>
<include
path=
"/js/**.htm"
/>
<include
path=
"/js/**/*.htm"
/>
<include
path=
"/js/**.html"
/>
<include
path=
"/js/**/*.html"
/>
<include
path=
"/js/**.gif"
/>
<include
path=
"/js/**/*.gif"
/>
<include
path=
"/js/**.png"
/>
<include
path=
"/js/**/*.png"
/>
<include
path=
"/js/**.jpg"
/>
<include
path=
"/js/**/*.jpg"
/>
<include
path=
"/skins/**.css"
/>
<include
path=
"/skins/**/*.css"
/>
<include
path=
"/skins/**.js"
/>
<include
path=
"/skins/**/*.js"
/>
<include
path=
"/skins/**.png"
/>
<include
path=
"/skins/**/*.png"
/>
<include
path=
"/skins/**.jpg"
/>
<include
path=
"/skins/**/*.jpg"
/>
<include
path=
"/skins/**.swf"
/>
<include
path=
"/skins/**/*.swf"
/>
<include
path=
"/skins/**.gif"
/>
<include
path=
"/skins/**/*.gif"
/>
<include
path=
"/css/**.css"
/>
<include
path=
"/css/**/*.css"
/>
<include
path=
"/images/**.png"
/>
<include
path=
"/images/**/*.png"
/>
<include
path=
"/images/**.jpg"
/>
<include
path=
"/images/**/*.jpg"
/>
<include
path=
"/images/**.gif"
/>
<include
path=
"/images/**/*.gif"
/>
<include
path=
"/plugins/**.css"
/>
<include
path=
"/plugins/**/*.css"
/>
<include
path=
"/plugins/**.js"
/>
<include
path=
"/plugins/**/*.js"
/>
<include
path=
"/plugins/**.png"
/>
<include
path=
"/plugins/**/*.png"
/>
<include
path=
"/plugins/**.jpg"
/>
<include
path=
"/plugins/**/*.jpg"
/>
<include
path=
"/plugins/**.swf"
/>
<include
path=
"/plugins/**/*.swf"
/>
<include
path=
"/plugins/**.gif"
/>
<include
path=
"/plugins/**/*.gif"
/>
<include
path=
"/plugins/**.html"
/>
<include
path=
"/plugins/**/*.html"
/>
<include
path=
"/plugins/**.htm"
/>
<include
path=
"/plugins/**/*.htm"
/>
<include
path=
"/CHANGE_LOGS.html"
/>
<include
path=
"/README.txt"
/>
<include
path=
"/LICENSE.txt"
/>
</static-files>
</appengine-web-app>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment