Skip to content

Instantly share code, notes, and snippets.

@thomd
Created December 18, 2015 16:08
Show Gist options
  • Save thomd/d314971552e5ceb0bf5a to your computer and use it in GitHub Desktop.
Save thomd/d314971552e5ceb0bf5a to your computer and use it in GitHub Desktop.
create .project files for eclipse
#!/usr/bin/env bash
for folder in $(find * -maxdepth 0 -type d)
do
cat <<EOF > $folder/.project
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>$folder</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.demandware.studio.core.beehiveElementBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.demandware.studio.core.beehiveNature</nature>
</natures>
</projectDescription>
EOF
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment