This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependency> | |
| <groupId>com.sun.jersey.contribs</groupId> | |
| <artifactId>jersey-spring</artifactId> | |
| <version>1.8</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring</artifactId> | |
| </exclusion> | |
| <exclusion> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.context.annotation.Scope; | |
| import org.springframework.stereotype.Component; | |
| import javax.servlet.ServletContext; | |
| import javax.ws.rs.GET; | |
| import javax.ws.rs.Path; | |
| import javax.ws.rs.Produces; | |
| import javax.ws.rs.core.Context; | |
| import java.io.IOException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static final String VERSION_KEY = "version"; | |
| private static final String POM_PROPS_PATH_MF = "/META-INF/maven/{0}/{1}/pom.properties"; | |
| public static String getMavenWarVersion(ServletContext context, String groupId, String artifactId) { | |
| String resourceName = MessageFormat.format(POM_PROPS_PATH_MF, new Object[]{groupId, artifactId}); | |
| Properties properties = loadProperties(context.getResourceAsStream(resourceName)); | |
| if (properties != null) { | |
| return properties.getProperty(VERSION_KEY); | |
| } | |
| return "unknown"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:context="http://www.springframework.org/schema/context" | |
| xmlns:jee="http://www.springframework.org/schema/jee" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
| http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd | |
| http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version='1.0' encoding='utf-8'?> | |
| <Context> | |
| <WatchedResource>WEB-INF/web.xml</WatchedResource> | |
| <Resource name="jdbc/mydb" auth="Container" type="javax.sql.DataSource" | |
| maxActive="100" maxIdle="30" maxWait="10000" | |
| username="sa" password="" driverClassName="org.h2.Driver" | |
| url="jdbc:h2:tcp://localhost/~/test"/> | |
| <Resource name="mail/session" auth="Container" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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/xsd/maven-4.0.0.xsd"> | |
| <build> | |
| ... | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.tomcat.maven</groupId> | |
| <artifactId>tomcat7-maven-plugin</artifactId> | |
| <version>2.1</version> | |
| <configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <settings> | |
| <servers> | |
| <server> | |
| <id>dev-tomcat</id> | |
| <username>tomcat</username> | |
| <password>password</password> | |
| </server> | |
| </servers> | |
| </settings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version='1.0' encoding='cp1252'?> | |
| <tomcat-users> | |
| <role rolename="manager-gui"/> | |
| <role rolename="manager-script"/> | |
| <role rolename="manager-jmx"/> | |
| <role rolename="manager-status"/> | |
| <role rolename="admin-gui"/> | |
| <role rolename="admin-script"/> | |
| <user username="tomcat" password="password" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT table_name, column_name, data_type FROM all_tab_cols | |
| WHERE lower(owner)=lower(:owner1) | |
| AND table_name LIKE :prefix | |
| AND column_name NOT LIKE 'SYS%' | |
| AND table_name||'-'||column_name NOT IN | |
| (SELECT table_name||'-'||column_name FROM all_tab_cols | |
| WHERE lower(owner)=lower(:owner2) | |
| ) | |
| ORDER BY table_name, column_name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import griffon.test.GriffonUnitTestCase | |
| /** | |
| * Date: 18/02/13 | |
| */ | |
| class ReportServiceTests extends GriffonUnitTestCase { | |
| GriffonApplication app | |
| ReportService reportService | |
| ImporterService importerService |