/**
* Copyright (C) 2008-2010, Squale Project - http://www.squale.org
*
* This file is part of Squale.
*
* Squale is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or any later version.
*
* Squale is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Squale. If not, see <http://www.gnu.org/licenses/>.
*/
package org.squale.squalix.tools.compiling.jsp.wsad;
import java.io.File;
import org.apache.tools.ant.taskdefs.Java;
import org.squale.squalix.tools.compiling.jsp.bean.J2eeWSADProject;
/**
*
*/
public class JWSADJspTomcat2_3Compiler
extends AbstractTomcatCompiler
{
/**
* @param pProject le projet
*/
public JWSADJspTomcat2_3Compiler( J2eeWSADProject pProject )
{
super( pProject );
}
/**
* {@inheritDoc}
*
* @see org.squale.squalix.tools.compiling.jsp.wsad.AbstractTomcatCompiler#setJavaArgs(org.apache.tools.ant.taskdefs.Java,
* java.lang.String, java.lang.String, java.io.File)
*/
protected void setJavaArgs( Java java, String packageName, File jspFile )
{
// R�pertoire de destination
java.createArg().setValue( "-d" );
java.createArg().setValue(
mJ2eeProject.getJspDestPath() + File.separator
+ packageName.replace( '.', File.separatorChar ) );
// Package : On indique un nom de package g�n�r�
java.createArg().setValue( "-p" );
java.createArg().setValue( packageName );
// On indique le chemin racine vers l'application web
java.createArg().setValue( "-uriroot" );
java.createArg().setValue( mJ2eeProject.getPath() );
// La jsp � g�n�rer
java.createArg().setValue( jspFile.getAbsolutePath() );
}
}