Browse Source

Remove those magic proeprties

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270443 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
7d82c96665
2 changed files with 0 additions and 70 deletions
  1. +0
    -35
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java
  2. +0
    -35
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/compilers/Jikes.java

+ 0
- 35
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/compilers/Jikes.java View File

@@ -116,22 +116,6 @@ public class Jikes
{
cmd.createArgument().setValue( "-depend" );
}
/**
* XXX Perhaps we shouldn't use properties for these three options
* (emacs mode, warnings and pedantic), but include it in the javac
* directive?
*/

/**
* Jikes has the nice feature to print error messages in a form readable
* by emacs, so that emacs can directly set the cursor to the place,
* where the error occured.
*/
String emacsProperty = m_project.getProperty( "build.compiler.emacs" );
if( emacsProperty != null && Project.toBoolean( emacsProperty ) )
{
cmd.createArgument().setValue( "+E" );
}

if( m_attributes.getNowarn() )
{
@@ -144,25 +128,6 @@ public class Jikes
cmd.createArgument().setValue( "-nowarn" );
}

/**
* Jikes can issue pedantic warnings.
*/
String pedanticProperty = m_project.getProperty( "build.compiler.pedantic" );
if( pedanticProperty != null && Project.toBoolean( pedanticProperty ) )
{
cmd.createArgument().setValue( "+P" );
}

/**
* Jikes supports something it calls "full dependency checking", see the
* jikes documentation for differences between -depend and +F.
*/
String fullDependProperty = m_project.getProperty( "build.compiler.fulldepend" );
if( fullDependProperty != null && Project.toBoolean( fullDependProperty ) )
{
cmd.createArgument().setValue( "+F" );
}

addCurrentCompilerArgs( cmd );

int firstFileName = cmd.size();


+ 0
- 35
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/compilers/Jikes.java View File

@@ -116,22 +116,6 @@ public class Jikes
{
cmd.createArgument().setValue( "-depend" );
}
/**
* XXX Perhaps we shouldn't use properties for these three options
* (emacs mode, warnings and pedantic), but include it in the javac
* directive?
*/

/**
* Jikes has the nice feature to print error messages in a form readable
* by emacs, so that emacs can directly set the cursor to the place,
* where the error occured.
*/
String emacsProperty = m_project.getProperty( "build.compiler.emacs" );
if( emacsProperty != null && Project.toBoolean( emacsProperty ) )
{
cmd.createArgument().setValue( "+E" );
}

if( m_attributes.getNowarn() )
{
@@ -144,25 +128,6 @@ public class Jikes
cmd.createArgument().setValue( "-nowarn" );
}

/**
* Jikes can issue pedantic warnings.
*/
String pedanticProperty = m_project.getProperty( "build.compiler.pedantic" );
if( pedanticProperty != null && Project.toBoolean( pedanticProperty ) )
{
cmd.createArgument().setValue( "+P" );
}

/**
* Jikes supports something it calls "full dependency checking", see the
* jikes documentation for differences between -depend and +F.
*/
String fullDependProperty = m_project.getProperty( "build.compiler.fulldepend" );
if( fullDependProperty != null && Project.toBoolean( fullDependProperty ) )
{
cmd.createArgument().setValue( "+F" );
}

addCurrentCompilerArgs( cmd );

int firstFileName = cmd.size();


Loading…
Cancel
Save