• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*******************************************************************************
2 * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors
3 * This program and the accompanying materials are made available under
4 * the terms of the Eclipse Public License 2.0 which is available at
5 * http://www.eclipse.org/legal/epl-2.0
6 *
7 * SPDX-License-Identifier: EPL-2.0
8 *
9 * Contributors:
10 *    Evgeny Mandrikov - initial API and implementation
11 *
12 *******************************************************************************/
13import java.io.*;
14import org.codehaus.plexus.util.*;
15
16File file = new File( basedir, "target/nospace.exec" );
17if ( file.isFile() )
18{
19    throw new FileNotFoundException( "Found unwanted dump: " + file );
20}
21
22File file = new File( basedir, "target/with space.exec" );
23if ( file.isFile() )
24{
25    throw new FileNotFoundException( "Found unwanted dump: " + file );
26}
27
28file = new File( basedir, "target/third.exec" );
29if ( !file.isFile() )
30{
31    throw new FileNotFoundException( "Could not find generated dump: " + file );
32}
33
34String argLine = "\"-Da=\\\"1\\\"\" -Db=2";
35String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
36if ( buildLog.indexOf( argLine ) < 0 ) {
37    throw new RuntimeException( "Original argLine was overwritten" );
38}
39