Version=2.5
AppType=StandardJava
IconFile=
NumberOfModules=0
Build1=Default,b4j.example
NumberOfFiles=0
NumberOfLibraries=2
Library1=jcore
Library2=jhttputils2
Sub AppStart (Args() As String)
Log("Start")
JobStart
End Sub
Sub JobStart
Dim job1 As HttpJob
Log("Job Init...")
job1.Initialize("Job1", Me)
Log("Jobname: " & job1.JobName)
'Send the version file
Log("Job download start...")
Dim url As String = "http://www.rwblinn.de/b4j/opensource/todoreader.ver"
job1.Download(url)
Log("Job download start completed...")
End Sub
Sub JobDone (Job As HttpJob)
Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
If Job.Success = True Then
Select Job.JobName
Case "Job1"
'print the result to the logs
Log(Job.GetString)
End Select
Else
Log("Error: " & Job.ErrorMessage)
End If
Job.Release
End Sub