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
[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
@Transactional | |
@Service | |
class DependencyClass implements IDependencyClass { | |
} | |
class MainClass { | |
@Autowired | |
private IDependencyClass insert; | |
} |
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
@Transactional | |
@Service | |
class DependencyClass implements IDependencyClass { | |
} | |
@Transactional | |
@Service | |
class DependencyClassAlternate implements IDependencyClass { | |
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
@Transactional | |
@Service("dc") | |
class DependencyClass implements IDependencyClass { | |
} | |
@Transactional | |
@Service("dca") | |
class DependencyClassAlternate implements IDependencyClass { | |
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
$("body").bind("ajaxSend", function(elm, xhr, s){ | |
if (s.type == "POST") { | |
xhr.setRequestHeader('X-CSRF-Token', Common.CSRF_TOKEN); | |
} | |
}); |
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
$("body").bind("ajaxSend", function(elm, xhr, s){ | |
if (s.type == "POST" || type == "DELETE" || type == "PUT") { | |
xhr.setRequestHeader('X-CSRF-Token', Common.CSRF_TOKEN); | |
} | |
}); |
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
mkdir monolithic_repo | |
cd monolithic_repo | |
git init . |
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
git remote add <remote_name> </path/to/existing/repo> | |
git fetch <remote_name> | |
git merge <remote_name>/master |
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
git add <subdir_name> | |
git add -u | |
git commit -m "adding <subdir_name>" |