Ed Dunn

1

votes
0

answer
295

views

Gradle - ivy dependencies: only download the jar files

I am trying to figure out how to use ivy dependencies in gradle and have it download only the jar file from the repositories. As it stands right now I get the zip files for javadocs and various source archives which is causing unnecessary bloat in my war file. I am new to gradle and slowly trying...
Ed Dunn
1

votes
1

answer
275

views

Gradle: class path resource [] cannot be resolved to URL because it does not exist

I am stuck trying to convert an ant junit test to gradle. I have solved my previous issue but now I am stuck with the following issue when running a test. Here is the stack trace I am getting. java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.ca...
Ed Dunn
1

votes
0

answer
66

views

Using gradle to publish all cached dependencies to a maven remote repository

After trying to convince my team to continue to use ivy, they decided they still want to go a head and use an internal maven server using artifactory. I have converted our ivy builds to gradle which is working fine. The issue is we're pulling from several maven repositories as well as 1 internal i...
Ed Dunn
1

votes
1

answer
1k

views

Datastax Cassandra PHP Driver

I am using the Datastax Cassandra driver for php and would like to be able to check if a query fails do to no results being found in the database. Right now if the query fails the logs report the following PHP Fatal error: Uncaught exception 'Cassandra\\Exception\\RuntimeException' with message 'N...
Ed Dunn
1

votes
1

answer
630

views

Python exception handling with selenium

I am new to Python and I am trying to write a nagios script which uses selenium to log into a webapp and print out some information. As of now the script works as expected but I would like it to alert the system if it fails to retrieve the website. Here is what I have #!/usr/bin/env python import...
Ed Dunn
1

votes
1

answer
180

views

gradle: downloading specific file from ivy repository

We use an internal ivy repository and are in the process from moving away from ant / ivy and tasking everything in gradle. I have my ivy repository set up in gradle as so: repositories { ivy { url '${ivy_repository_url}' layout 'pattern', { ivy 'repository/[organisation]/[module]/[revision]/[artifa...
Ed Dunn
1

votes
1

answer
50

views

Using FMPP with Gradle

I am attempting to convert an ant task which uses fmpp over to gradle. I am unable to get my project to build. I have the following in my build.xml file: base_url: ${base_url} google_analytics_number: ${google_analytics_number} mail_user: ${mail_user} mail_password: ${mail_password} mail_recipient...
Ed Dunn
1

votes
1

answer
2k

views

Getting a javascript variable out of a python selenium call

I am currently using Python with selenium to monitor changes to our pbx. A value I need is being called by a javascript call and is not actually being written to html so it's been a little confusing as to how I can extract the value. If I inspect the element this is what I see On the web page it d...
Ed Dunn
1

votes
2

answer
75

views

Building a checkbox list from a database query and retaining the checkbox after a form submit

I am trying to build a simple form which queries a database, grabs a list of email addresses and then creates a table based on the results. What I would like it to do is retain the checked boxes after a submission but am having trouble figuring it out based on the way I've created my table. I can...
Ed Dunn
1

votes
1

answer
27

views

Problems with gradle-svntools-plugin when performing an SvnUpdate task

I am using the gradle-svntools-plugin to attempt to update my svn source etc. but am getting the following error when executing the task A problem occurred evaluating root project 'XBRLReports'. Cannot cast object '12345' with class 'java.lang.String' to class 'java.lang.Long' Here is the task in qu...
Ed Dunn
2

votes
3

answer
64

views

Attaching Multiple Files to an email

Been stuck on this all day and am not really sure what the issue is. I've read through everything I could find in the forums which have gotten me closer but not quite there yet. Here's what going on. Our web site uses phpMailer. We are trying to allow a applicant to upload 2 files via our contac...
Ed Dunn
2

votes
3

answer
384

views

Executing an if else shell command from perl

I have never run into this scenario before so I could use a little help. I am trying to issue an if/else statement from a shell command but within perl. I've tried system and exec with no success. Here's a sample of the code if ($os eq 'Ubuntu'){ system('if ! dpkg -l curl &> /dev/null; then apt-g...
Ed Dunn
4

votes
2

answer
1.3k

views

Gradle: List deprecated features

I am getting a warning about the usage of deprecated features in my build. Is there a way to list all the deprecated features so that I may go through and update my code? *clarification I know I can go to the gradle documentation and see what is now deprecated, what I would specifically like is a w...
Ed Dunn
2

votes
1

answer
62

views

Using argparse with a specified acceptable option

I am trying to use argparse to accept required command line options. I have defined a function like so def get_args(): parser = argparse.ArgumentParser(description='Help Desk Calendar Tool') parser.add_argument('-s', '--start', type=str, required=True, metavar='YYYY-MM-DD') parser.add_argument('-e...
Ed Dunn
2

votes
1

answer
41

views

Gradle: Is there a better way to assign the same dependency to 2 configurations?

Just a general question but is there a cleaner way to assign the same dependency to 2 configurations? Right now I have the following code, which works, but would like to clean it up if possible dependencies{ compile 'mysql:mysql-connector-java:${mysql_conn_ver}' sql 'mysql:mysql-connector-java:${my...
Ed Dunn
3

votes
2

answer
674

views

Running single junit test in gradle passes but fails when entire test is run

I have an unusual issue dealing with a particular junit test within gradle. When I run the test as follows it passes gradlew test --tests com.compsci.ic.xbrl.SchemaRefTest However when I run gradlew test it fails with the following stacktrace java.lang.IllegalStateException: Undeclared namespace p...
Ed Dunn