From 2337fe227dea9278b6304d3bd830c1362b5aaf6f Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 13 Jun 2008 11:43:42 +0000 Subject: INTEGRATION: CWS qadev32 (1.1.2); FILE ADDED 2008/06/13 08:33:07 rt 1.1.2.7: Correct license header 2008/05/13 19:07:03 cn 1.1.2.6: #i87389# enhance javadoc 2008/05/05 09:36:09 cn 1.1.2.5: #i85370# enhance logging 2008/04/03 07:55:40 cn 1.1.2.4: #i87389# add final to some variables 2008/03/05 10:54:25 cn 1.1.2.3: #i85370# small fixes 2008/01/22 11:41:03 cn 1.1.2.2: #i85370#: parameter validation 2008/01/21 16:30:56 cn 1.1.2.1: #i85370#: This class support you to execute some shell commands in a buld environment --- qadevOOo/runner/helper/BuildEnvTools.java | 250 ++++++++++++++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 qadevOOo/runner/helper/BuildEnvTools.java (limited to 'qadevOOo/runner/helper') diff --git a/qadevOOo/runner/helper/BuildEnvTools.java b/qadevOOo/runner/helper/BuildEnvTools.java new file mode 100644 index 000000000000..239dffeec93d --- /dev/null +++ b/qadevOOo/runner/helper/BuildEnvTools.java @@ -0,0 +1,250 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: BuildEnvTools.java,v $ + * + * $Revision: 1.2 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +package helper; + +import java.io.File; +import java.io.PrintWriter; +import lib.TestParameters; +import share.LogWriter; +import util.*; + +/** + * This class support you to execute some shell commands in a buld environment. At ervery call of commands + * a build environment was created and the commands will be executed. + * + */ +public class BuildEnvTools { + + private final TestParameters param; + private final LogWriter log; + private final boolean mDebug; + private final String mEnvSet; + private final String mPlatform; + private final String mShell; + private final String mVersion; + + /** + * This constructor creates an instance of BuildEncTools. It is verifying for all neccesarry + * parameters in TestParameters This must be: + *