ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stewart, Robbie (Contractor)" <Robbie.Stew...@dsto.defence.gov.au>
Subject RE: Jesse Glick offers the <doh!> solution to the non-packa ge files issue
Date Thu, 14 Sep 2000 06:44:41 GMT
Gidday Diane,

Definitely not goofy, but given there are 476 different
ways to skin your knees you could also do something like 
Solution #477 -- it kinda keeps the responsibility of
scanDir() small and simple.


protected void scanDir(..)
{
  :
  File classFile = new File(buildClassFilename(files[i]));
  :
}

private String buildClassFilename(String srcFilename)
{
  String basename = srcFilename.substring(0, srcFilename.indexOf(".java") +
                    ".class";

  if (true == flatten)
    return basename;
  else
    return destDir.getAbsolutePath() + basename;
}


Robbe Stewart      Software Engineer
Altasys Software	 Cell +61 414 643 461
                   Ph +61 8 8259 7430

Contracted to:		
Department of Defence	mailto:Robbie.Stewart@dsto.defence.gov.au
Salisbury SA
Australia

Mime
View raw message