View Javadoc

1   package com.eviware.soapui.support.jnlp;
2   
3   import java.io.File;
4   
5   public class WebstartUtilCore extends WebstartUtil
6   {
7   
8   	public static void init()
9   	{
10  		if( isWebStart() )
11  		{
12  			try
13  			{
14  				// if( System.getProperty( "deployment.user.tmp" ) != null
15  				// && System.getProperty( "deployment.user.tmp" ).length() > 0 )
16  				// {
17  				// System.setProperty( "GRE_HOME", System.getProperty(
18  				// "deployment.user.tmp" ) );
19  				// }
20  
21  				// wsi-test-tools
22  				System.setProperty( "wsi.dir", createWebStartDirectory( "wsi-test-tools", System
23  						.getProperty( "wsitesttools.jar.url" ) )
24  						+ File.separator + "wsi-test-tools" );
25  				System.out.println( System.getProperty( "wsi.dir" ) );
26  			}
27  			catch( Exception e )
28  			{
29  				e.printStackTrace();
30  			}
31  
32  		}
33  
34  	}
35  }