alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Groovy example source code file (groovyc)

This example Groovy source code file (groovyc) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Groovy tags/keywords

bootstrap, date, dirname, dirname/startgroovy, dirname/startgroovy, do, groovy, groovy, jvm, okt, prg, prg, revision, un*x

The Groovy groovyc source code

#!/bin/sh

##############################################################################
##                                                                          ##
##  Groovy JVM Bootstrap for UN*X                                           ##
##                                                                          ##
##############################################################################

##
## $Revision: 18152 $
## $Date: 2009-10-29 10:39:32 +0100 (Do, 29. Okt 2009) $
##

GROOVY_APP_NAME=GroovyC

# resolve links - $0 may be a soft-link
PRG="$0"

while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '/.*' > /dev/null; then
        PRG="$link"
    else
        PRG=`dirname "$PRG"`/"$link"
    fi
done

DIRNAME=`dirname "$PRG"`

. "$DIRNAME/startGroovy"

startGroovy org.codehaus.groovy.tools.FileSystemCompiler "$@"

Other Groovy examples (source code examples)

Here is a short list of links related to this Groovy groovyc source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.