Archive for March, 2010

17
Mar
10

creating a folder based on today’s date


Here’s how you’d create a folder on Windows based on today’s date:

md %date:/=_%

Advertisements
14
Mar
10

knee injuries


I just have one advice for all the guys that train on a regular basis: don’t overtrain. It’s what I did, and I managed to injure the ligaments on both my knees. Oh, and always warm up before exercise.

10
Mar
10

using ruby from ant


An example on how you could use a fileset from a ruby script task:


<script language="ruby" classpathref="jruby_classpath">
	task = $project.createDataType("fileset")
	task.case_sensitive = false
	task.setDir java.io.File.new($basedir)
	task.setIncludes("**/*.*")
	task.setExcludes("**/*test*/**")
	scanner = task.getDirectoryScanner($project)
	scanner.getIncludedFiles.each {|f| puts f}
</script>

This snippet will include every file in the basedir, except those containing the string test.




Blog Stats

  • 229,301 hits