May 27

Sometimes you need to pass an argument on the command line to be used by your Ant build.

You can achieve this by passing it as a system property using the -D option. eg.

ant -Dmyarg=abc build

You can then access that system property in your build script as ${myarg}. eg. The following will replace all occurrences of ‘@@@’ with the value of myarg specified on the command line (‘abc’ in the above example)

<replace dir="${src}" token="@@@" value="${myarg}">
  <include name="**/*.html"/>
</replace>

written by objects \\ tags: , , ,

Feb 12

The following two locats are checked by Maven for its settings.xml:

  • $M2_HOME/conf/settings.xml
  • ${user.home}/.m2/settings.xml

The settings defined in the users home directory take presedence over the corresponding global settings.

written by objects \\ tags: , ,

Nov 26

The location to install Adobe CS4 brushes depends on the OS

  • Mac: /Library/Application Support/Adobe/Adobe Photoshop CS4/Presets.
  • Windows XP: [Drive]:\Document and Settings\\Application Data\Adobe\Adobe Photoshop CS4\Presets
  • Windows Vista: [Drive]:\Users\\AppData\Roaming\Adobe\Adobe Photoshop CS4\Presets.

Copy the brush set (.abr file) into the appropriate Presets directory and they will appear as presets in the Photoshop (you will need to restart Photoshop before they show up).

written by objects \\ tags: , , , , , , , , , ,