Large diffs are not rendered by default.

@@ -0,0 +1,3 @@
eclipse.preferences.version=1
formatter_profile=_Aptana Java Formatting Preferences
formatter_settings_version=12
@@ -0,0 +1,14 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: com.aptana.jira.core;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.aptana.jira.core.JiraCorePlugin
Bundle-Vendor: %Bundle-Vendor
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.equinox.security,
com.aptana.core
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
Export-Package: com.aptana.jira.core
Eclipse-ExtensibleAPI: true
@@ -0,0 +1,3 @@
#Properties file for com.aptana.jira.core
Bundle-Vendor = Appcelerator, Inc.
Bundle-Name = JIRA Integration
@@ -0,0 +1,6 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
OSGI-INF/,\
license.html

Large diffs are not rendered by default.

@@ -0,0 +1,67 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.jira.core;

import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;

public class JiraCorePlugin extends Plugin
{

public static final String PLUGIN_ID = "com.aptana.jira.core"; //$NON-NLS-1$

private static JiraCorePlugin plugin;
private JiraManager fManager;

/**
* Returns the shared instance
*
* @return the shared instance
*/
public static JiraCorePlugin getDefault()
{
return plugin;
}

/**
* The constructor
*/
public JiraCorePlugin()
{
}

/*
* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception
{
super.start(context);
plugin = this;
}

/*
* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception
{
fManager = null;
plugin = null;
super.stop(context);
}

public synchronized JiraManager getJiraManager()
{
if (fManager == null)
{
fManager = new JiraManager();
}
return fManager;
}
}
@@ -0,0 +1,29 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.jira.core;

public class JiraException extends Exception
{

private static final long serialVersionUID = 7533530410878760897L;

public JiraException(String message)
{
super(message);
}

public JiraException(Throwable exception)
{
super(exception);
}

public JiraException(String message, Throwable exception)
{
super(message, exception);
}
}
@@ -0,0 +1,166 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.jira.core;

import java.io.File;
import java.net.URL;
import java.text.MessageFormat;
import java.util.StringTokenizer;

import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.URIUtil;
import org.eclipse.equinox.security.storage.ISecurePreferences;
import org.eclipse.equinox.security.storage.SecurePreferencesFactory;
import org.eclipse.equinox.security.storage.StorageException;

import com.aptana.core.logging.IdeLog;
import com.aptana.core.util.ProcessUtil;
import com.aptana.core.util.StringUtil;

/**
* @author Michael Xia (mxia@appcelerator.com)
*/
public class JiraManager
{

private static final String LIBRARY_PLUGIN_ID = "org.swift.jira.cli"; //$NON-NLS-1$
private static final String JIRA_WIN = "jira.bat"; //$NON-NLS-1$
private static final String JIRA_UNIX = "jira.sh"; //$NON-NLS-1$

private static final String PARAM_ACTION = "-a"; //$NON-NLS-1$
private static final String PARAM_USERNAME = "-u"; //$NON-NLS-1$
private static final String PARAM_PASSWORD = "-p"; //$NON-NLS-1$
private static final String ACTION_LOGIN = "login"; //$NON-NLS-1$

private static final String SECURE_PREF_NODE = "com.aptana.jira.core"; //$NON-NLS-1$
private static final String USERNAME = "username"; //$NON-NLS-1$
private static final String PASSWORD = "password"; //$NON-NLS-1$

private static IPath jiraExecutable;

private JiraUser user;

JiraManager()
{
loadCredentials();
}

/**
* @return the currently JIRA user, or null if there has not been a successful login attempt
*/
public JiraUser getUser()
{
return user;
}

/**
* Logs into JIRA with a username and password.
*
* @param username
* the username
* @param password
* the password
* @throws JiraException
*/
public void login(String username, String password) throws JiraException
{
IPath jiraExecutable = getJiraExecutable();
String output = ProcessUtil.outputForCommand(jiraExecutable.toOSString(), jiraExecutable.removeLastSegments(1),
PARAM_ACTION, ACTION_LOGIN, PARAM_USERNAME, username, PARAM_PASSWORD, password);
if (!StringUtil.isEmpty(output))
{
output = output.trim();
StringTokenizer tk = new StringTokenizer(output);
if (tk.countTokens() == 1)
{
// a valid token is returned; the login is successful
user = new JiraUser(username, password);
// save the credentials
saveCredentials();
}
else
{
// an error
throw new JiraException(output);
}
}
}

private void loadCredentials()
{
ISecurePreferences prefs = getSecurePreferences();
try
{
String username = prefs.get(USERNAME, null);
String password = prefs.get(PASSWORD, null);
if (!StringUtil.isEmpty(username) && !StringUtil.isEmpty(password))
{
user = new JiraUser(username, password);
}
}
catch (StorageException e)
{
IdeLog.logError(JiraCorePlugin.getDefault(), "Failed to load Jira user credentials", e); //$NON-NLS-1$
}
}

private void saveCredentials()
{
ISecurePreferences prefs = getSecurePreferences();
try
{
prefs.put(USERNAME, user.getUsername(), true /* encrypt */);
prefs.put(PASSWORD, user.getPassword(), true /* encrypt */);
prefs.flush();
}
catch (Exception e)
{
IdeLog.logError(JiraCorePlugin.getDefault(), "Failed to save Jira user credentials", e); //$NON-NLS-1$
}
}

private static IPath getJiraExecutable()
{
if (jiraExecutable == null)
{
File file;
IPath path;
try
{
if (Platform.OS_WIN32.equals(Platform.getOS()))
{
path = Path.fromOSString(JIRA_WIN);
}
else
{
path = Path.fromOSString(JIRA_UNIX);
}
URL url = FileLocator.find(Platform.getBundle(LIBRARY_PLUGIN_ID), path, null);
if (url != null)
{
file = URIUtil.toFile(FileLocator.toFileURL(url).toURI());
jiraExecutable = Path.fromOSString(file.getAbsolutePath());
}
}
catch (Exception e)
{
IdeLog.logError(JiraCorePlugin.getDefault(),
MessageFormat.format("Failed to find plugin {0}", LIBRARY_PLUGIN_ID), e); //$NON-NLS-1$
}
}
return jiraExecutable;
}

private static ISecurePreferences getSecurePreferences()
{
return SecurePreferencesFactory.getDefault().node(SECURE_PREF_NODE);
}
}
@@ -0,0 +1,31 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.jira.core;

public class JiraUser
{

private final String username;
private final String password;

public JiraUser(String username, String password)
{
this.username = username;
this.password = password;
}

public String getUsername()
{
return username;
}

public String getPassword()
{
return password;
}
}
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.aptana.jira.ui</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
@@ -0,0 +1,14 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: com.aptana.jira.ui;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.aptana.jira.ui.JiraUIPlugin
Bundle-Vendor: %Bundle-Vendor
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
com.aptana.core,
com.aptana.ui;bundle-version="3.1.3",
com.aptana.jira.core
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
@@ -0,0 +1,3 @@
#Properties file for com.aptana.jira.ui
Bundle-Vendor = Appcelerator, Inc.
Bundle-Name = Jira UI
@@ -0,0 +1,7 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
OSGI-INF/,\
plugin.xml,\
license.html

Large diffs are not rendered by default.

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="com.aptana.ui.accountsPreferencePage">
<provider
class="com.aptana.jira.ui.preferences.JiraPreferencePageProvider"
priority="50">
</provider>
</extension>

</plugin>
@@ -0,0 +1,61 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.jira.ui;

import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

/**
* The activator class controls the plug-in life cycle
*/
public class JiraUIPlugin extends AbstractUIPlugin
{

// The plug-in ID
public static final String PLUGIN_ID = "com.aptana.jira.ui"; //$NON-NLS-1$

// The shared instance
private static JiraUIPlugin plugin;

/**
* The constructor
*/
public JiraUIPlugin()
{
}

/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception
{
super.start(context);
plugin = this;
}

/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception
{
plugin = null;
super.stop(context);
}

/**
* Returns the shared instance
*
* @return the shared instance
*/
public static JiraUIPlugin getDefault()
{
return plugin;
}
}
@@ -0,0 +1,172 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.jira.ui.preferences;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.jface.layout.PixelConverter;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

import com.aptana.core.util.StringUtil;
import com.aptana.jira.core.JiraCorePlugin;
import com.aptana.jira.core.JiraException;
import com.aptana.jira.core.JiraManager;
import com.aptana.jira.core.JiraUser;
import com.aptana.ui.preferences.AbstractAccountPageProvider;
import com.aptana.ui.util.SWTUtils;
import com.aptana.ui.util.WorkbenchBrowserUtil;

/**
* @author Michael Xia (mxia@appcelerator.com)
*/
public class JiraPreferencePageProvider extends AbstractAccountPageProvider
{

private static final String SIGNUP_URL = "https://jira.appcelerator.org/secure/Signup!default.jspa"; //$NON-NLS-1$

private Group main;
private Text usernameText;
private Text passwordText;
private Button testButton;
private Button createAccountButton;

public JiraPreferencePageProvider()
{
}

public Control createContents(Composite parent)
{
main = new Group(parent, SWT.NONE);
main.setText(Messages.JiraPreferencePageProvider_LBL_Jira);
main.setLayout(GridLayoutFactory.swtDefaults().numColumns(3).create());

Label label = new Label(main, SWT.NONE);
label.setText(StringUtil.makeFormLabel(Messages.JiraPreferencePageProvider_LBL_Username));
label.setLayoutData(GridDataFactory.swtDefaults().create());

usernameText = new Text(main, SWT.BORDER);
usernameText
.setLayoutData(GridDataFactory.swtDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).create());

testButton = new Button(main, SWT.NONE);
testButton.setText(Messages.JiraPreferencePageProvider_LBL_Validate);
testButton.setLayoutData(GridDataFactory.swtDefaults().hint(getButtonWidthHint(testButton), SWT.DEFAULT)
.create());
testButton.addSelectionListener(new SelectionAdapter()
{

@Override
public void widgetSelected(SelectionEvent e)
{
validate();
}
});

label = new Label(main, SWT.NONE);
label.setText(StringUtil.makeFormLabel(Messages.JiraPreferencePageProvider_LBL_Password));
label.setLayoutData(GridDataFactory.swtDefaults().create());

passwordText = new Text(main, SWT.BORDER | SWT.PASSWORD);
passwordText
.setLayoutData(GridDataFactory.swtDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).create());

createAccountButton = new Button(main, SWT.NONE);
createAccountButton.setText(StringUtil.ellipsify(Messages.JiraPreferencePageProvider_LBL_Signup));
createAccountButton.setLayoutData(GridDataFactory.swtDefaults()
.hint(getButtonWidthHint(createAccountButton), SWT.DEFAULT).create());
createAccountButton.addSelectionListener(new SelectionAdapter()
{

@Override
public void widgetSelected(SelectionEvent e)
{
WorkbenchBrowserUtil.launchExternalBrowser(SIGNUP_URL);
}
});

adjustWidth();

// loads the existing user
JiraUser user = getJiraManager().getUser();
if (user != null)
{
usernameText.setText(user.getUsername());
passwordText.setText(user.getPassword());
}

return main;
}

public boolean performOk()
{
return validate();
}

protected JiraManager getJiraManager()
{
return JiraCorePlugin.getDefault().getJiraManager();
}

private void adjustWidth()
{
List<Control> actionControls = new ArrayList<Control>();
actionControls.add(testButton);
actionControls.add(createAccountButton);

SWTUtils.resizeControlWidthInGrid(actionControls);
}

private boolean validate()
{
String username = usernameText.getText();
String password = passwordText.getText();
if (StringUtil.isEmpty(username))
{
MessageDialog.openError(main.getShell(), Messages.JiraPreferencePageProvider_ERR_InvalidInput_Title,
Messages.JiraPreferencePageProvider_ERR_EmptyUsername);
return false;
}
if (StringUtil.isEmpty(password))
{
MessageDialog.openError(main.getShell(), Messages.JiraPreferencePageProvider_ERR_InvalidInput_Title,
Messages.JiraPreferencePageProvider_ERR_EmptyPassword);
return false;
}
try
{
getJiraManager().login(username, password);
}
catch (JiraException e)
{
MessageDialog.openError(main.getShell(), Messages.JiraPreferencePageProvider_ERR_LoginFailed_Title,
e.getMessage());
return false;
}
return true;
}

private static int getButtonWidthHint(Button button)
{
PixelConverter converter = new PixelConverter(button);
int widthHint = converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
return Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
}
}
@@ -0,0 +1,35 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.jira.ui.preferences;

import org.eclipse.osgi.util.NLS;

public class Messages extends NLS
{
private static final String BUNDLE_NAME = "com.aptana.jira.ui.preferences.messages"; //$NON-NLS-1$

public static String JiraPreferencePageProvider_ERR_EmptyPassword;
public static String JiraPreferencePageProvider_ERR_EmptyUsername;
public static String JiraPreferencePageProvider_ERR_InvalidInput_Title;
public static String JiraPreferencePageProvider_ERR_LoginFailed_Title;
public static String JiraPreferencePageProvider_LBL_Jira;
public static String JiraPreferencePageProvider_LBL_Password;
public static String JiraPreferencePageProvider_LBL_Signup;
public static String JiraPreferencePageProvider_LBL_Username;
public static String JiraPreferencePageProvider_LBL_Validate;

static
{
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}

private Messages()
{
}
}
@@ -0,0 +1,9 @@
JiraPreferencePageProvider_ERR_EmptyPassword=Please enter a password.
JiraPreferencePageProvider_ERR_EmptyUsername=Please enter a username.
JiraPreferencePageProvider_ERR_InvalidInput_Title=Invalid Input
JiraPreferencePageProvider_ERR_LoginFailed_Title=Jira Login Failed
JiraPreferencePageProvider_LBL_Jira=JIRA
JiraPreferencePageProvider_LBL_Password=Password
JiraPreferencePageProvider_LBL_Signup=Sign up
JiraPreferencePageProvider_LBL_Username=Username
JiraPreferencePageProvider_LBL_Validate=Validate
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.aptana.ui;singleton:=true
Bundle-Version: 3.0.3.qualifier
Bundle-Version: 3.1.3.qualifier
Bundle-Activator: com.aptana.ui.UIPlugin
Bundle-Vendor: %providerName
Require-Bundle: org.eclipse.core.runtime,
@@ -42,4 +42,6 @@ category.wizards.export.name = Studio

command.terminal.label = Terminal
page.troubleshooting.name = Troubleshooting
buildPath.property.page.name = Project Build Path
buildPath.property.page.name = Project Build Path
page.accounts.name = Accounts
extension-point.accounts.name = Accounts Preference Page
@@ -4,6 +4,7 @@
<extension-point id="propertyDialogs" name="%extension-point.propertydialogs.name" schema="schema/propertyDialogs.exsd"/>
<extension-point id="imageAssociations" name="%extension-point.imageassociations.name" schema="schema/imageAssociations.exsd"/>
<extension-point id="diagnostic" name="%extension-point.diagnostic.name" schema="schema/diagnostic.exsd"/>
<extension-point id="accountsPreferencePage" name="%extension-point.accounts.name" schema="schema/accountsPreferencePage.exsd"/>
<extension
point="org.eclipse.ui.perspectives">
<perspective
@@ -285,6 +286,12 @@
id="com.aptana.ui.TroubleshootingPreferencePage"
name="%page.troubleshooting.name">
</page>
<page
category="com.aptana.ui.AptanaPreferencePage"
class="com.aptana.ui.preferences.AccountsPreferencePage"
id="com.aptana.ui.accountsPreferencePage"
name="%page.accounts.name">
</page>
</extension>
<extension
point="org.eclipse.ui.actionSets">
@@ -0,0 +1,103 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="com.aptana.ui" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="com.aptana.ui" id="accountsPreferencePage" name="Accounts Preference Page"/>
</appinfo>
<documentation>
This extension point allows contributing content to the Accounts preference page.
</documentation>
</annotation>

<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<sequence>
<element ref="provider" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>

</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>

<element name="provider">
<complexType>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
The class that contributes UI to the Accounts preference page.
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn=":com.aptana.ui.preferences.IAccountPageProvider"/>
</appinfo>
</annotation>
</attribute>
<attribute name="priority" type="string" use="default" value="50">
<annotation>
<documentation>
An optional attribute that defines the order in which contributing UIs should appear.
</documentation>
</annotation>
</attribute>
</complexType>
</element>

<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
Aptana Studio 3.1.3
</documentation>
</annotation>

<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
&lt;p&gt;
&lt;pre&gt;
&lt;extension
point=&quot;com.aptana.ui.accountsPreferencePage&quot;&gt;
&lt;provider
class=&quot;com.aptana.examples.preferences.AccountPreferencePageProvider&quot;
priority=&quot;50&quot;&gt;
&lt;/provider&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
</documentation>
</annotation>




</schema>
@@ -0,0 +1,52 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.ui.preferences;

import java.text.MessageFormat;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;

import com.aptana.core.logging.IdeLog;
import com.aptana.core.util.StringUtil;
import com.aptana.ui.UIPlugin;

public abstract class AbstractAccountPageProvider implements IAccountPageProvider, IExecutableExtension
{

private static final String ATTR_PRIORITY = "priority"; //$NON-NLS-1$

private int priority = 50;

public int getPriority()
{
return priority;
}

public void setInitializationData(IConfigurationElement config, String propertyName, Object data)
throws CoreException
{
String priorityStr = config.getAttribute(ATTR_PRIORITY);
if (!StringUtil.isEmpty(priorityStr))
{
try
{
priority = Integer.parseInt(priorityStr);
}
catch (NumberFormatException e)
{
IdeLog.logWarning(
UIPlugin.getDefault(),
MessageFormat
.format("Unable to parse the priority value ({0}) for the account page provider as an integer; defaulting to 50", //$NON-NLS-1$
priorityStr));
}
}
}
}
@@ -0,0 +1,135 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.ui.preferences;

import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Set;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

import com.aptana.core.logging.IdeLog;
import com.aptana.core.util.CollectionsUtil;
import com.aptana.core.util.EclipseUtil;
import com.aptana.core.util.IConfigurationElementProcessor;
import com.aptana.core.util.StringUtil;
import com.aptana.ui.UIPlugin;

/**
* @author Michael Xia (mxia@appcelerator.com)
*/
public class AccountsPreferencePage extends PreferencePage implements IWorkbenchPreferencePage
{

public static final String ID = "com.aptana.ui.accountsPreferencePage"; //$NON-NLS-1$

private static final String EXTENSION_POINT_ID = "accountsPreferencePage"; //$NON-NLS-1$
private static final String ELEMENT_PROVIDER = "provider"; //$NON-NLS-1$
private static final String ATTR_CLASS = "class"; //$NON-NLS-1$

private List<IAccountPageProvider> providers;

public void init(IWorkbench workbench)
{
// processes the extension point
if (providers != null)
{
return;
}
providers = new ArrayList<IAccountPageProvider>();

EclipseUtil.processConfigurationElements(UIPlugin.PLUGIN_ID, EXTENSION_POINT_ID,
new IConfigurationElementProcessor()
{

public void processElement(IConfigurationElement element)
{
String name = element.getName();
if (ELEMENT_PROVIDER.equals(name))
{
String className = element.getAttribute(ATTR_CLASS);
if (StringUtil.isEmpty(className))
{
return;
}
try
{
Object provider = element.createExecutableExtension(ATTR_CLASS);
if (provider instanceof IAccountPageProvider)
{
providers.add((IAccountPageProvider) provider);
}
else
{
IdeLog.logError(UIPlugin.getDefault(), MessageFormat.format(
"The class {0} does not implement IAccountPageProvider", className)); //$NON-NLS-1$
}
}
catch (CoreException e)
{
IdeLog.logError(UIPlugin.getDefault(), e);
}
}
}

public Set<String> getSupportElementNames()
{
return CollectionsUtil.newSet(ELEMENT_PROVIDER);
}
});

Collections.sort(providers, new Comparator<IAccountPageProvider>()
{

public int compare(IAccountPageProvider provider1, IAccountPageProvider provider2)
{
return provider1.getPriority() - provider2.getPriority();
}
});
}

@Override
protected Control createContents(Composite parent)
{
Composite main = new Composite(parent, SWT.NONE);
main.setLayout(GridLayoutFactory.fillDefaults().create());
main.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());

for (IAccountPageProvider provider : providers)
{
Control control = provider.createContents(main);
control.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).create());
}
return main;
}

@Override
public boolean performOk()
{
for (IAccountPageProvider provider : providers)
{
if (!provider.performOk())
{
return false;
}
}
return true;
}
}
@@ -0,0 +1,35 @@
/**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.aptana.ui.preferences;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;

public interface IAccountPageProvider
{

/**
* Creates the contents contributed to the Accounts preferences page.
*
* @return the container control
*/
public Control createContents(Composite parent);

/**
* Notifies the provider that the OK button of the Accounts preferences page has been pressed.
*
* @return false to abort the processing of OK operation and true to allow the operation to happen
*/
public boolean performOk();

/**
* @return the priority of the provider that will be used to determine the order in which each appears in the
* preferences page
*/
public int getPriority();
}
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.swift.jira.cli</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,6 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.swift.jira.cli
Bundle-Version: 2.5.0
Bundle-Vendor: %Bundle-Vendor
@@ -0,0 +1,3 @@
#Properties file for org.swift.jira.cli
Bundle-Vendor = Bob Swift
Bundle-Name = JIRA Command Line Interface
@@ -0,0 +1,38 @@
Command line interface client for JIRA

This is a command line interface (CLI) for remotely accessing JIRA.
This is a working command line client that can be used directly with your installation.
It uses JIRA's SOAP remote API, REST API, and other techniques.
This is part of a family of CLI clients supporting Atlassian products.
Also available as part of the Atlassian CLI distribution.

Installation
- Unzip the distribution package and put the enclosed directory in a convenient location
- Ensure Remote API is enabled in your JIRA installation
-- You need to be a JIRA administrator
-- Go to General Administration under Remote API
-- Setting should be YES

Java Requirements
- Requires a JRE version 1.6 or higher on the client
- Run java -version from a command line
- ensure it shows 1.6 or higher


Usage
- On a command line, cd to the directory where you installed the client
- On Windows
-- Run jira
- On Linux, Mac, or Unix
-- Run ./jira.sh
- On any system supporting Java
-- Run java -jar release/jira-cli-x.x.x.jar
- This will show help text for the command line interface client
- The client defaults to use a user of automation. Either add this user with all the authorities required to do the actions you want or specify a different user parameter
- It is recommended that you open the confluene.bat or jira.sh file with an editor and customize it for your environment by adding server, user, and password parameters.
Follow the example in the comments and make sure you do not remove the %* at the end of the line.

License
- The software provided for this tool has a BSD style license
- The distribution ships binaries with various licenses (BSD, LGPL, and Apache)
- Look in the license directory for detailed license information
@@ -0,0 +1,8 @@
bin.includes = META-INF/,\
OSGI-INF/,\
README.txt,\
jira.bat,\
jira.sh,\
lib/,\
license/,\
examples/
@@ -0,0 +1,4 @@
user1, group3
user1, group4
user1, group5, xxxxx, extra stuff should be ignored
user1, group6
@@ -0,0 +1,5 @@

user1, , email1@x.com
user2, password2, email2@x.com, Full User Name 2
user3, , email3@x.com, Full User Name 3, group1
user4, , email4@x.com, , group1, group2
@@ -0,0 +1,26 @@
# Run example to create a project with versions, components, and issues
# Example command line:
# jira --action run --file runExample.txt --findReplace @project@:XYZ,@user@:automation --continue

# Remove project
--action deleteProject --project @project@

# Create project
--action createProject --project @project@ --name "@project@ test" --description "@project@ test" --lead @user@
--action updateProject --project @project@ --permissionScheme "Restrict create issue"

# Versions
--action addVersion --project @project@ --name "V1"
--action addVersion --project @project@ --name "V2"

# Components
--action addComponent --project @project@ --name "C1"
--action addComponent --project @project@ --name "C2"

# Issues
--action createIssue --project @project@ --type "1" --summary "summary text" --assignee @user@ --affectsVersions "V1, V2" --components "C1"
--action createIssue --project @project@ --type "Sub-task" --summary "subtask summary text" --parent @issue@ --comment "Subtask comment"

# Attachments - add attachment to previously created issue and subtask
--action addAttachment --issue @issue@ --file "src/itest/resources/data.txt"
--action addAttachment --issue @subtask@ --file "src/itest/resources/data.txt"
@@ -0,0 +1,16 @@
@echo off
rem remember the directory path to this bat file
set dirPath=%~dp0

rem need to reverse windows names to posix names by changing \ to /
set dirPath=%dirPath:\=/%
rem remove blank at end of string
set dirPath=%dirPath:~0,-1%

rem - Customize for your installation, for instance you might want to add default parameters like the following:
rem java -jar "%dirPath%"/lib/jira-cli-2.5.0.jar --server http://my-server --user automation --password automation %*

java -jar "%dirPath%"/lib/jira-cli-2.5.0.jar --server https://jira.appcelerator.org %*

rem Exit with the correct error level.
EXIT /B %ERRORLEVEL%
@@ -0,0 +1,7 @@
#!/bin/bash

# Comments
# - Customize for your installation, for instance you might want to add default parameters like the following:
# java -jar `dirname $0`/lib/jira-cli-2.5.0.jar --server http://my-server --user automation --password automation "$@"

java -jar `dirname $0`/lib/jira-cli-2.5.0.jar --server https://jira.appcelerator.org "$@"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,202 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,21 @@
Copyright (c) 2007, Copyright (c) 2007, Dolby Laboratories, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the Dolby Laboratories, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,31 @@
JSAP - Java Simple Argument Parser
Copyright (c) 2002-2004, Martian Software, Inc.


LICENSE
-------
JSAP is licensed under the Lesser GNU Public License.
A copy of this license is available at
http://www.fsf.org/licenses/licenses.html#LGPL

Alternate licensing terms may be obtained by contacting
the author: http://www.martiansoftware.com/contact.html


JAVA LGPL CLARIFICATION
-----------------------
JSAP is Free Software. The LGPL license is sufficiently
flexible to allow the use of JSAP in both open source
and commercial projects. Using JSAP (by importing JSAP's
public interfaces in your Java code), and extending JSAP
(by subclassing) are considered by the authors of JSAP
to be dynamic linking. Hence our interpretation of the
LGPL is that the use of the unmodified JSAP source or
binary, or the rebundling of unmodified JSAP classes into
your program's .jar file, does not affect the license of
your application code.

If you modify JSAP and redistribute your modifications,
the LGPL applies.

(based upon similar clarification at http://www.hibernate.org/ )
@@ -0,0 +1,30 @@
BSD License

The PostgreSQL JDBC driver is distributed under the BSD license, same as the server. The simplest explanation of the licensing terms is that you can do whatever you want with the product and source code as long as you don't claim you wrote it or sue us. You should give it a read though, it's only half a page.

Copyright (c) 1997-2010, PostgreSQL Global Development Group
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the PostgreSQL Global Development Group nor the names
of its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,25 @@
Copyright (c) 2005, 2009 Bob Swift and other contributors.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* The names of contributors may not
be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,19 @@

For license information, see LICENSE files included with
this distribution as well as LICENSE files packaged in
the various jar files included with this distribution.

This distribution includes binary distributions from
other providers including, but not limited to, the following:

This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).

This product includes software developed by
Martian Software, Inc. (http://www.martiansoftware.com).

This product includes software developed by
Dolby Laboratories, Inc. (http://www.dolby.co.uk).

This product includes software developed by
PostgreSQL Global Development Group. (http://jdbc.postgresql.org).
@@ -55,7 +55,8 @@ Require-Bundle: org.eclipse.core.runtime,
com.aptana.portal.ui,
com.aptana.samples,
com.aptana.console,
com.aptana.buildpath.core
com.aptana.buildpath.core,
com.aptana.jira.core
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
Export-Package: com.aptana.studio.tests.all
@@ -37,6 +37,7 @@ public void runTest(Test test, TestResult result)
suite.addTest(com.aptana.plist.tests.AllTests.suite());
suite.addTest(com.aptana.samples.tests.AllTests.suite());
suite.addTest(com.aptana.scripting.tests.AllTests.suite());
suite.addTest(com.aptana.jira.core.tests.AllJiraCoreTests.suite());
// suite.addTest(com.aptana.syncing.core.tests.AllTests.suite());
// $JUnit-END$
return suite;