You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by he...@apache.org on 2012/10/05 17:39:42 UTC

svn commit: r1394598 - in /airavata/sandbox/client-api-demo: pom.xml src/main/java/org/sample/airavata/api/SampleUtil.java

Author: heshan
Date: Fri Oct  5 15:39:42 2012
New Revision: 1394598

URL: http://svn.apache.org/viewvc?rev=1394598&view=rev
Log:
Adding the mysql dependency.

Modified:
    airavata/sandbox/client-api-demo/pom.xml
    airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java

Modified: airavata/sandbox/client-api-demo/pom.xml
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/pom.xml?rev=1394598&r1=1394597&r2=1394598&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/pom.xml (original)
+++ airavata/sandbox/client-api-demo/pom.xml Fri Oct  5 15:39:42 2012
@@ -278,6 +278,11 @@
             <version>2.5</version>
         </dependency>
         <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>5.0.8</version>
+        </dependency>
+        <dependency>
             <groupId>org.apache.airavata</groupId>
             <artifactId>airavata-jpa-registry</artifactId>
             <version>${airavata.version}</version>

Modified: airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java?rev=1394598&r1=1394597&r2=1394598&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java (original)
+++ airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java Fri Oct  5 15:39:42 2012
@@ -12,16 +12,16 @@ import java.net.URISyntaxException;
 public class SampleUtil {
 
     public static AiravataAPI getAiravataAPI(String username, String password, String registryRMIURI) {
-        URI jcrRegistryURI = null;
+        URI registryURI = null;
         try {
-            jcrRegistryURI = new URI(registryRMIURI);
+            registryURI = new URI(registryRMIURI);
         } catch (URISyntaxException e) {
             e.printStackTrace();
         }
 
         AiravataAPI airavataAPI = null;
         try {
-            airavataAPI = AiravataClientUtils.getAPI(jcrRegistryURI, username, password);
+            airavataAPI = AiravataClientUtils.getAPI(registryURI, username, password);
         } catch (MalformedURLException e) {
             e.printStackTrace();
         } catch (RepositoryException e) {



Re: svn commit: r1394598 - in /airavata/sandbox/client-api-demo: pom.xml src/main/java/org/sample/airavata/api/SampleUtil.java

Posted by Heshan Suriyaarachchi <he...@gmail.com>.
My bad. I removed it.

Thanks,
Heshan.

On Fri, Oct 5, 2012 at 11:42 AM, Suresh Marru <sm...@apache.org> wrote:

> Heshan,
>
> Mysql dependency cannot be in the pom. Its not license compatible. We have
> to download manually and add it.
>
> Suresh
>
> On Oct 5, 2012, at 11:39 AM, heshan@apache.org wrote:
>
> > Author: heshan
> > Date: Fri Oct  5 15:39:42 2012
> > New Revision: 1394598
> >
> > URL: http://svn.apache.org/viewvc?rev=1394598&view=rev
> > Log:
> > Adding the mysql dependency.
> >
> > Modified:
> >    airavata/sandbox/client-api-demo/pom.xml
> >
>  airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> >
> > Modified: airavata/sandbox/client-api-demo/pom.xml
> > URL:
> http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/pom.xml?rev=1394598&r1=1394597&r2=1394598&view=diff
> >
> ==============================================================================
> > --- airavata/sandbox/client-api-demo/pom.xml (original)
> > +++ airavata/sandbox/client-api-demo/pom.xml Fri Oct  5 15:39:42 2012
> > @@ -278,6 +278,11 @@
> >             <version>2.5</version>
> >         </dependency>
> >         <dependency>
> > +            <groupId>mysql</groupId>
> > +            <artifactId>mysql-connector-java</artifactId>
> > +            <version>5.0.8</version>
> > +        </dependency>
> > +        <dependency>
> >             <groupId>org.apache.airavata</groupId>
> >             <artifactId>airavata-jpa-registry</artifactId>
> >             <version>${airavata.version}</version>
> >
> > Modified:
> airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> > URL:
> http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java?rev=1394598&r1=1394597&r2=1394598&view=diff
> >
> ==============================================================================
> > ---
> airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> (original)
> > +++
> airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> Fri Oct  5 15:39:42 2012
> > @@ -12,16 +12,16 @@ import java.net.URISyntaxException;
> > public class SampleUtil {
> >
> >     public static AiravataAPI getAiravataAPI(String username, String
> password, String registryRMIURI) {
> > -        URI jcrRegistryURI = null;
> > +        URI registryURI = null;
> >         try {
> > -            jcrRegistryURI = new URI(registryRMIURI);
> > +            registryURI = new URI(registryRMIURI);
> >         } catch (URISyntaxException e) {
> >             e.printStackTrace();
> >         }
> >
> >         AiravataAPI airavataAPI = null;
> >         try {
> > -            airavataAPI = AiravataClientUtils.getAPI(jcrRegistryURI,
> username, password);
> > +            airavataAPI = AiravataClientUtils.getAPI(registryURI,
> username, password);
> >         } catch (MalformedURLException e) {
> >             e.printStackTrace();
> >         } catch (RepositoryException e) {
> >
> >
>
>


-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/

Re: svn commit: r1394598 - in /airavata/sandbox/client-api-demo: pom.xml src/main/java/org/sample/airavata/api/SampleUtil.java

Posted by Saminda Wijeratne <sa...@gmail.com>.
I think Amila has a point there... Our JPA implementation of registry
(while generic) under special circumstances has jdbc provider specific
scripts which we eventually have to figure-out how to get rid of. Until
then the test cases should be run against both derby & mysql. So whats the
verdict on this? Can we use it for test scope?

Saminda

On Fri, Oct 5, 2012 at 1:20 PM, Amila Jayasekara <th...@gmail.com>wrote:

> Hi Suresh,
>
> Is it ok to have my-sql connector in test scope ?
> I am referring to a situation where my-sql connector jar is not part
> of our distribution but used only in some specific tests.
>
> Thanks
> Amila
>
> On Fri, Oct 5, 2012 at 11:42 AM, Suresh Marru <sm...@apache.org> wrote:
> > Heshan,
> >
> > Mysql dependency cannot be in the pom. Its not license compatible. We
> have to download manually and add it.
> >
> > Suresh
> >
> > On Oct 5, 2012, at 11:39 AM, heshan@apache.org wrote:
> >
> >> Author: heshan
> >> Date: Fri Oct  5 15:39:42 2012
> >> New Revision: 1394598
> >>
> >> URL: http://svn.apache.org/viewvc?rev=1394598&view=rev
> >> Log:
> >> Adding the mysql dependency.
> >>
> >> Modified:
> >>    airavata/sandbox/client-api-demo/pom.xml
> >>
>  airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> >>
> >> Modified: airavata/sandbox/client-api-demo/pom.xml
> >> URL:
> http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/pom.xml?rev=1394598&r1=1394597&r2=1394598&view=diff
> >>
> ==============================================================================
> >> --- airavata/sandbox/client-api-demo/pom.xml (original)
> >> +++ airavata/sandbox/client-api-demo/pom.xml Fri Oct  5 15:39:42 2012
> >> @@ -278,6 +278,11 @@
> >>             <version>2.5</version>
> >>         </dependency>
> >>         <dependency>
> >> +            <groupId>mysql</groupId>
> >> +            <artifactId>mysql-connector-java</artifactId>
> >> +            <version>5.0.8</version>
> >> +        </dependency>
> >> +        <dependency>
> >>             <groupId>org.apache.airavata</groupId>
> >>             <artifactId>airavata-jpa-registry</artifactId>
> >>             <version>${airavata.version}</version>
> >>
> >> Modified:
> airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> >> URL:
> http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java?rev=1394598&r1=1394597&r2=1394598&view=diff
> >>
> ==============================================================================
> >> ---
> airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> (original)
> >> +++
> airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> Fri Oct  5 15:39:42 2012
> >> @@ -12,16 +12,16 @@ import java.net.URISyntaxException;
> >> public class SampleUtil {
> >>
> >>     public static AiravataAPI getAiravataAPI(String username, String
> password, String registryRMIURI) {
> >> -        URI jcrRegistryURI = null;
> >> +        URI registryURI = null;
> >>         try {
> >> -            jcrRegistryURI = new URI(registryRMIURI);
> >> +            registryURI = new URI(registryRMIURI);
> >>         } catch (URISyntaxException e) {
> >>             e.printStackTrace();
> >>         }
> >>
> >>         AiravataAPI airavataAPI = null;
> >>         try {
> >> -            airavataAPI = AiravataClientUtils.getAPI(jcrRegistryURI,
> username, password);
> >> +            airavataAPI = AiravataClientUtils.getAPI(registryURI,
> username, password);
> >>         } catch (MalformedURLException e) {
> >>             e.printStackTrace();
> >>         } catch (RepositoryException e) {
> >>
> >>
> >
>

Re: svn commit: r1394598 - in /airavata/sandbox/client-api-demo: pom.xml src/main/java/org/sample/airavata/api/SampleUtil.java

Posted by Amila Jayasekara <th...@gmail.com>.
Hi Suresh,

Is it ok to have my-sql connector in test scope ?
I am referring to a situation where my-sql connector jar is not part
of our distribution but used only in some specific tests.

Thanks
Amila

On Fri, Oct 5, 2012 at 11:42 AM, Suresh Marru <sm...@apache.org> wrote:
> Heshan,
>
> Mysql dependency cannot be in the pom. Its not license compatible. We have to download manually and add it.
>
> Suresh
>
> On Oct 5, 2012, at 11:39 AM, heshan@apache.org wrote:
>
>> Author: heshan
>> Date: Fri Oct  5 15:39:42 2012
>> New Revision: 1394598
>>
>> URL: http://svn.apache.org/viewvc?rev=1394598&view=rev
>> Log:
>> Adding the mysql dependency.
>>
>> Modified:
>>    airavata/sandbox/client-api-demo/pom.xml
>>    airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
>>
>> Modified: airavata/sandbox/client-api-demo/pom.xml
>> URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/pom.xml?rev=1394598&r1=1394597&r2=1394598&view=diff
>> ==============================================================================
>> --- airavata/sandbox/client-api-demo/pom.xml (original)
>> +++ airavata/sandbox/client-api-demo/pom.xml Fri Oct  5 15:39:42 2012
>> @@ -278,6 +278,11 @@
>>             <version>2.5</version>
>>         </dependency>
>>         <dependency>
>> +            <groupId>mysql</groupId>
>> +            <artifactId>mysql-connector-java</artifactId>
>> +            <version>5.0.8</version>
>> +        </dependency>
>> +        <dependency>
>>             <groupId>org.apache.airavata</groupId>
>>             <artifactId>airavata-jpa-registry</artifactId>
>>             <version>${airavata.version}</version>
>>
>> Modified: airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
>> URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java?rev=1394598&r1=1394597&r2=1394598&view=diff
>> ==============================================================================
>> --- airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java (original)
>> +++ airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java Fri Oct  5 15:39:42 2012
>> @@ -12,16 +12,16 @@ import java.net.URISyntaxException;
>> public class SampleUtil {
>>
>>     public static AiravataAPI getAiravataAPI(String username, String password, String registryRMIURI) {
>> -        URI jcrRegistryURI = null;
>> +        URI registryURI = null;
>>         try {
>> -            jcrRegistryURI = new URI(registryRMIURI);
>> +            registryURI = new URI(registryRMIURI);
>>         } catch (URISyntaxException e) {
>>             e.printStackTrace();
>>         }
>>
>>         AiravataAPI airavataAPI = null;
>>         try {
>> -            airavataAPI = AiravataClientUtils.getAPI(jcrRegistryURI, username, password);
>> +            airavataAPI = AiravataClientUtils.getAPI(registryURI, username, password);
>>         } catch (MalformedURLException e) {
>>             e.printStackTrace();
>>         } catch (RepositoryException e) {
>>
>>
>

Re: svn commit: r1394598 - in /airavata/sandbox/client-api-demo: pom.xml src/main/java/org/sample/airavata/api/SampleUtil.java

Posted by Suresh Marru <sm...@apache.org>.
Heshan,

Mysql dependency cannot be in the pom. Its not license compatible. We have to download manually and add it.

Suresh

On Oct 5, 2012, at 11:39 AM, heshan@apache.org wrote:

> Author: heshan
> Date: Fri Oct  5 15:39:42 2012
> New Revision: 1394598
> 
> URL: http://svn.apache.org/viewvc?rev=1394598&view=rev
> Log:
> Adding the mysql dependency.
> 
> Modified:
>    airavata/sandbox/client-api-demo/pom.xml
>    airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> 
> Modified: airavata/sandbox/client-api-demo/pom.xml
> URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/pom.xml?rev=1394598&r1=1394597&r2=1394598&view=diff
> ==============================================================================
> --- airavata/sandbox/client-api-demo/pom.xml (original)
> +++ airavata/sandbox/client-api-demo/pom.xml Fri Oct  5 15:39:42 2012
> @@ -278,6 +278,11 @@
>             <version>2.5</version>
>         </dependency>
>         <dependency>
> +            <groupId>mysql</groupId>
> +            <artifactId>mysql-connector-java</artifactId>
> +            <version>5.0.8</version>
> +        </dependency>
> +        <dependency>
>             <groupId>org.apache.airavata</groupId>
>             <artifactId>airavata-jpa-registry</artifactId>
>             <version>${airavata.version}</version>
> 
> Modified: airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java
> URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java?rev=1394598&r1=1394597&r2=1394598&view=diff
> ==============================================================================
> --- airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java (original)
> +++ airavata/sandbox/client-api-demo/src/main/java/org/sample/airavata/api/SampleUtil.java Fri Oct  5 15:39:42 2012
> @@ -12,16 +12,16 @@ import java.net.URISyntaxException;
> public class SampleUtil {
> 
>     public static AiravataAPI getAiravataAPI(String username, String password, String registryRMIURI) {
> -        URI jcrRegistryURI = null;
> +        URI registryURI = null;
>         try {
> -            jcrRegistryURI = new URI(registryRMIURI);
> +            registryURI = new URI(registryRMIURI);
>         } catch (URISyntaxException e) {
>             e.printStackTrace();
>         }
> 
>         AiravataAPI airavataAPI = null;
>         try {
> -            airavataAPI = AiravataClientUtils.getAPI(jcrRegistryURI, username, password);
> +            airavataAPI = AiravataClientUtils.getAPI(registryURI, username, password);
>         } catch (MalformedURLException e) {
>             e.printStackTrace();
>         } catch (RepositoryException e) {
> 
>