This file contains 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
<target name="js.minify" depends="js.preprocess"> | |
<apply executable="java" parallel="false"> | |
<fileset dir="." includes="*.css"/> <arg line="-jar"/> | |
<arg path="yuicompressor.jar"/> | |
<arg line="--line-break 0"/> <srcfile/> | |
<arg line="-o"/> <mapper type="glob" from="*.css" to="*-min.css"/> | |
<targetfile/> | |
</apply> | |
</target> |
This file contains 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
<target name="js.minify" depends="js.preprocess"> | |
<apply executable="java" parallel="false"> | |
<fileset dir="." includes="foo.js, bar.js"/> | |
<arg line="-jar"/> | |
<arg path="yuicompressor.jar"/> | |
<srcfile/> <arg line="-o"/> | |
<mapper type="glob" from="*.js" to="*-min.js"/> | |
<targetfile/> | |
</apply> | |
</target> |
This file contains 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
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:security="http://www.springframework.org/schema/security" xmlns:context="http://www.springframework.org/schema/context" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd"> | |
<security:authentication-manager> | |
<security:authentication-provider> | |
<security:user-service id="userService"> | |
<security:user name="username1" password="password1" authorities="ROLE_USER" /></security:user-service> | |
</security:authentication-provider> |
This file contains 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
<filter> | |
<filter-name>springSecurityFilterChain</filter-name> | |
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> | |
</filter> | |
<filter-mapping> | |
<filter-name>springSecurityFilterChain</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> | |
<listener> | |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
This file contains 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.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
import org.springframework.web.bind.annotation.ResponseBody; | |
@Controller | |
@RequestMapping("/test") | |
public class SampleController { | |
@RequestMapping(value="sample", method = RequestMethod.GET) |
This file contains 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>org.springframework</groupId> | |
<artifactId>spring-core</artifactId> | |
<version>${spring.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-web</artifactId> | |
<version>${spring.version}</version> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#map { | |
width: 500px; | |
height: 400px; | |
} | |
</style> | |
<script src="https://maps.googleapis.com/maps/api/js"></script> |
This file contains 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
String servletContextName = message.getString("servletContextName"); | |
ServletContext servletContext = ServletContextPool.get(servletContextName); | |
PluginPackageProperties pluginPackageProperties = null; | |
try{ | |
if (servletContext != null) { | |
pluginPackageProperties = new PluginPackageProperties(servletContext); | |
} | |
} | |
catch(Exception e){ |
This file contains 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
package com.sdl.qdox.demo; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import com.thoughtworks.qdox.JavaDocBuilder; | |
import com.thoughtworks.qdox.model.JavaClass; | |
import com.thoughtworks.qdox.model.JavaMethod; | |
import com.thoughtworks.qdox.model.JavaPackage; | |
import com.thoughtworks.qdox.model.JavaSource; |
This file contains 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
package com.sdl.qdox.demo; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class DemoJava { | |
public void printName() { | |
System.out.println("Hi print name method"); | |
} |
NewerOlder