Skip to content

Commit

Permalink
SAK-41143 Moved to i18n web service instead of jquery plugin (sakaipr…
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored Jan 3, 2019
1 parent 4728844 commit 7741f00
Show file tree
Hide file tree
Showing 64 changed files with 1,111 additions and 280 deletions.
32 changes: 32 additions & 0 deletions roster2/i18n/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<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>

<name>ROSTER2 I18N</name>
<artifactId>sakai-roster2-i18n</artifactId>
<groupId>org.sakaiproject.roster2</groupId>

<parent>
<artifactId>sakai-roster2-base</artifactId>
<groupId>org.sakaiproject.roster2</groupId>
<version>20-SNAPSHOT</version>
</parent>

<packaging>jar</packaging>

<properties>
<deploy.target>shared</deploy.target>
</properties>

<build>
<resources>
<resource>
<directory>${basedir}/src/i18n</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package org.sakaiproject.roster.i18n;

public class RosterI18NLoader {}
270 changes: 24 additions & 246 deletions roster2/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<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>

<parent>
Expand All @@ -9,252 +10,29 @@
<relativePath>../master/pom.xml</relativePath>
</parent>

<name>ROSTER2 TOOL</name>
<name>ROSTER2 BASE</name>
<groupId>org.sakaiproject.roster2</groupId>
<artifactId>sakai-roster2-tool</artifactId>
<organization>
<name>Sakai Project</name>
<url>http://sakaiproject.org/</url>
</organization>
<inceptionYear>2010</inceptionYear>
<packaging>war</packaging>

<properties>
<yuicompressor.plugin.version>1.2</yuicompressor.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<developers>
<developer>
<id>d.b.robinson</id>
<name>Daniel Robinson</name>
<organization>Lancaster University</organization>
<email>[email protected]</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
<timezone>0</timezone>
</developer>
<developer>
<id>a.fish</id>
<name>Adrian Fish</name>
<organization>Lancaster University</organization>
<email>[email protected]</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
<timezone>0</timezone>
</developer>
<developer>
<id>steve.swinsburg</id>
<name>Steve Swinsburg</name>
<email>[email protected]</email>
<roles>
<role>developer</role>
<role>POM plumber</role>
<role>release manager</role>
</roles>
<timezone>+10</timezone>
</developer>
<developer>
<id>arwhyte</id>
<name>Anthony Whyte</name>
<organization>Sakai Foundation / University of Michigan</organization>
<email>[email protected]</email>
<roles>
<role>POM plumber</role>
<role>Past release manager</role>
</roles>
<timezone>-5</timezone>
</developer>
</developers>


<dependencies>
<dependency>
<groupId>org.sakaiproject.kernel</groupId>
<artifactId>sakai-kernel-api</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.kernel</groupId>
<artifactId>sakai-component-manager</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.kernel</groupId>
<artifactId>sakai-kernel-util</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.common</groupId>
<artifactId>sakai-privacy-api</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.edu-services.course-management</groupId>
<artifactId>coursemanagement-api</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.entitybroker</groupId>
<artifactId>entitybroker-api</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.entitybroker</groupId>
<artifactId>entitybroker-utils</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.profile2</groupId>
<artifactId>profile2-api</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.sitestats</groupId>
<artifactId>sitestats-api</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>${sakai.poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>${sakai.poi.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
</dependencies>

<build>
<resources>
<resource>
<directory>${basedir}/src/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/i18n</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<plugins>
<!-- compress CSS and JS -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>${yuicompressor.plugin.version}</version>
<executions>
<execution>
<id>compress</id>
<phase>process-resources</phase>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<sourceDirectory>${basedir}/src/webapp</sourceDirectory>
<outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
<nosuffix>true</nosuffix>
<jswarn>false</jswarn>
<excludes>
<exclude>**/*.java</exclude>
<exclude>**/*.html</exclude>
<exclude>**/*.xml</exclude>
<exclude>**/*.gif</exclude>
<exclude>**/*.png</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/*.min.js</exclude>
<exclude>**/*-min.js</exclude>
</excludes>
</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>${project.build.directory}/${project.build.finalName}</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/i18n/org/sakaiproject/roster</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars-maven-plugin</artifactId>
<version>${handlebars4.version}</version>
<executions>
<execution>
<id>precompile</id>
<phase>prepare-package</phase>
<goals>
<goal>precompile</goal>
</goals>
<configuration>
<output>${project.build.directory}/${project.build.finalName}/templates.js</output>
<prefix>${basedir}/src/handlebars</prefix>
<suffix>.handlebars</suffix>
<amd>false</amd>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

</build>
<artifactId>sakai-roster2-base</artifactId>
<packaging>pom</packaging>

<modules>
<module>tool</module>
<module>i18n</module>
</modules>

<dependencies>
<dependency>
<groupId>org.sakaiproject.kernel</groupId>
<artifactId>sakai-kernel-api</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.kernel</groupId>
<artifactId>sakai-component-manager</artifactId>
</dependency>
<dependency>
<groupId>org.sakaiproject.message</groupId>
<artifactId>sakai-message-api</artifactId>
</dependency>
</dependencies>

</project>
Loading

0 comments on commit 7741f00

Please sign in to comment.