package com.atlassian.sal.refimpl;

import com.atlassian.sal.api.ApplicationProperties;

import java.util.Date;
import java.io.File;

/**
 * Implementation of ApplicationProperties for http://localhost
 */
public class RefimplApplicationProperties implements ApplicationProperties
{
    private static final Date THEN = new Date();

    public String getBaseUrl()
    {
        return System.getProperty("baseurl", "http://localhost:8080/atlassian-plugins-refimpl");
    }

    public String getDisplayName()
    {
        return "RefImpl";
    }

    public String getVersion()
    {
        return "1.0";
    }

    public Date getBuildDate()
    {
        return THEN;
    }

    public String getBuildNumber()
    {
        return "123";
    }

    public File getHomeDirectory()
    {
        return new File(System.getProperty("java.tmp.dir"));
    }
}

package com.atlassian.sal.refimpl;

import com.atlassian.sal.api.ApplicationProperties;

import java.util.Date;
import java.io.File;

/**
 * Implementation of ApplicationProperties for http://localhost
 */
public class RefimplApplicationProperties implements ApplicationProperties
{
    private static final Date THEN = new Date();

    public String getBaseUrl()
    {
        return System.getProperty("baseurl", "http://localhost:8080/atlassian-plugins-refimpl");
    }

    public String getDisplayName()
    {
        return "RefImpl";
    }

    public String getVersion()
    {
        return "1.0";
    }

    public Date getBuildDate()
    {
        return THEN;
    }

    public String getBuildNumber()
    {
        return "123";
    }

    public File getHomeDirectory()
    {
        return new File(System.getProperty("java.io.tmpdir"));
    }
}

Fix wrong java tmp dir sys property
Fix wrong java tmp dir sys property


git-svn-id: 2433085265c0232ec46d186f8a8240da49417e22@32162 2c54a935-e501-0410-bc05-97a93f6bca70
