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
[INFO] +- me.prettyprint:hector-core:jar:1.0-1:compile | |
[INFO] | +- commons-pool:commons-pool:jar:1.5.3:compile | |
[INFO] | +- org.apache.cassandra:cassandra-thrift:jar:1.0.0:compile | |
[INFO] | +- org.apache.thrift:libthrift:jar:0.6.1:compile | |
[INFO] | | \- org.slf4j:slf4j-log4j12:jar:1.5.8:compile | |
[INFO] | +- org.slf4j:slf4j-api:jar:1.6.1:compile | |
[INFO] | +- com.github.stephenc.eaio-uuid:uuid:jar:3.2.0:compile | |
[INFO] | \- com.ecyrd.speed4j:speed4j:jar:0.9:compile |
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
NAMESPACE_MAP = {'ns' => 'http://maven.apache.org/POM/4.0.0'} | |
require 'nokogiri' | |
require 'find' | |
namespace :mvn do | |
desc "[path, version] upgrade this version and all of it's children to the version specified as the second character" | |
task :version, :path, :version_str do |t, args| | |
base_path = args[:path] | |
version = args[:version_str] | |
puts "Updating all poms in #{base_path} to parent 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
<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"> | |
<parent> | |
<groupId>com.tejusparikh</groupId> | |
<artifactId>tejusparikh</artifactId> | |
<version>1.0.RELEASE</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.tejusparikh.web</groupId> | |
<artifactId>tejusparikh-web</artifactId> | |
<packaging>war</packaging> |
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
<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>com.tejusparikh</groupId> | |
<artifactId>tejusparikh</artifactId> | |
<packaging>pom</packaging> | |
<version>1.0.RELEASE</version> | |
<modules> | |
<module>web</module> | |
</modules> | |
<properties> |
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
<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"> | |
<parent> | |
<groupId>com.tejusparikh</groupId> | |
<artifactId>tejusparikh</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.tejusparikh.web</groupId> | |
<artifactId>tejusparikh-web</artifactId> | |
<packaging>war</packaging> |
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
<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>com.tejusparikh</groupId> | |
<artifactId>tejusparikh</artifactId> | |
<packaging>pom</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<modules> | |
<module>web</module> | |
</modules> | |
<properties> |
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
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> | |
<property name="ignoreResourceNotFound" value="false"/> | |
<property name="ignoreUnresolvablePlaceholders" value="true" /> | |
<property name="placeholderPrefix" value="@{" /> | |
<property name="placeholderSuffix" value="}" /> | |
<property name="locations"> | |
<list> | |
<value>classpath:env.properties</value> | |
</list> | |
</property> |
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
public class OrderedPropertyPlaceholderConfigurator implements Ordered, BeanFactoryPostProcessor { | |
private Resource[] locations; | |
private String systemPropertiesModeName; | |
private Boolean ignoreResourceNotFound; | |
private String propertyPlaceholderPrefix; | |
private String propertyPlaceholderSuffix; | |
@Override | |
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { | |
PropertyPlaceholderConfigurer configurer = new PropertyPlaceholderConfigurer(); |
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
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> | |
<property name="ignoreResourceNotFound" value="false"/> | |
<property name="locations"> | |
<list> | |
<value>http://noah.domain/path/to/file</value> | |
</list> | |
</property> | |
</bean> |
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
User.where("facebook_id IN (:facebook_ids)", {:facebook_ids => ids}) | |
# You need to manually add parenthesis around the parameter, since AR does not do anything magical with the query. | |