38
votes
4answers
35k views

Timer & TimerTask versus Thread + sleep in Java

I found similar questions asked here but there weren't answers to my satisfaction. So rephrasing the question again- I have a task that needs to be done on a periodic basis (say 1 minute intervals). ...
11
votes
2answers
10k views

Ant scp task not working, even with jsch on ant/lib

I need to copy a war file via scp. I have added the jsch-0.1.42.jar to $ANT_HOME/lib but I'm still getting this error: Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not ...
8
votes
13answers
2k views

Does anyone have any ideas for an assignment in game programming?

Much like the author of Give me an assignment in C, I'm looking to learn game programming and I learn best by doing, but I don't have any good ideas for games to program which will teach me the skills ...
8
votes
2answers
5k views

where the heck is org.hibernate.tool.ant.HibernateToolTask?

Where the heck do I get org.hibernate.tool.ant.HibernateToolTask ? I can't seem to find a .jar file that contains it.
8
votes
2answers
1k views

How to pass a serialized object to appengine java task?

I'm using java appengine and the task queue API to run async tasks. I would like to add a task to the task queue but pass a a java object as a parameter. I notic the task options api can add a ...
6
votes
1answer
3k views

ANT-contrib It's possible to use AND, OR in condition in tag IF?

contrib It's possible to check more condition in tag IF? I need to do something like this : <if> <equals arg1="${var}" arg2="one"/> <or> <equals arg1="${var}" arg2="two"/> ...
5
votes
6answers
3k views

Java - Scheduling a daily task

I'm looking for an effective way to execute a method everyday at 3PM regardless of when the application was initially run or how long it has been running. This must be done entirely from the ...
4
votes
2answers
3k views

How to enable Task tags (TODO,…) for java?

I wanted to use // TODO tags in order to have a Task list. I'm using Eclipse Helios, I work on a Java project, and the view I openned is "Tasks", not "Task list". I've checked as well that there is ...
4
votes
3answers
387 views

How to time-bound a computation in Java and be able to get all the results computed so far, even when the time budget ends (time-out)?

In a framework I'm developing the user can choose to run a certain time consuming task in background while doing something else. That task computes a series of results. In some point, when he/she ...
4
votes
2answers
458 views

How do I share data between custom Ant tasks?

I wrote two different custom Ant tasks. They are trying to share data through a static member in a base class. This is not working for me. I assume I am using static members correctly within Java. ...
3
votes
4answers
1k views

Ant Tasks for Amazon EC2/S3?

Does anyone know of a good library providing Ant tasks for performing operations against Amazon EC2/S3? I'd like to leverage S3 for deployment of new WAR files for my applications, and figured Ant ...
3
votes
2answers
2k views

How to maintain a job history using Quartz scheduler

I'd like to maintain a history of jobs that were scheduled by a Quartz scheduler containing the following properties: 'start time', 'end time', 'success', 'error'. There are two interfaces available ...
3
votes
1answer
2k views

Problem with Google task demo API

I've been following the launch of the Google Tasks API, and I was just to start playing with it, but I'm not be able to compile the first steps, I'm having an Exception in thread "main" ...
3
votes
4answers
2k views

How to add hbm2java task to Ant in NetBeans

I'm trying to generate POJO's from mapping xml files. I read something about adding an ant task, to do it easily. I've added this xml below to my project's build-impl.xml in Netbeans, but nothing ...
3
votes
2answers
1k views

Ant target to move directories out of another directory

How to move directories to one directory using an Ant task? My directory structure is like: my/directory/root |-dir1/one/same/lib |-dir2/two/same/lib ...

1 2 3 4 5 8
15 30 50 per page