Create a build file to run the project [closed] - ant

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have been given the following requirements.
Create a build file with ANT build that creates a .jar from the source file (Source being in *D:\Root\Products\Application\Files* )
Create a bat file to run the .jar saved in a different location(say in
*D:\Root\Products\Application\ReleaseBuild*)
Where should I start with? I am new to build files and no idea how to begin with. And am a bit confused with the build tutorials.
Please someone suggest a way to begin with.
Thanks in advance.

start with an ant-task that compiles the code to a temp directory (ant-task: javac)
package those files to a jar (ant-task jar) - see, step 1 is essential, because jar does only bundle the files, but does not compile the sources for you
create the bat-script using the ant-task echo

Related

Parse TXT File with local paths to copy these to a folder [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I've been copying favorite songs for "THE MOST AWESOME CAR CD EVER" into a txt file. All the files are exact paths to the music.
Now i want to parse the txt and copy what it finds into a folder... i`m not that fluent in batch so maybe you could help me out
Thanks
#echo off
setlocal
for /f "usebackqdelims=" %%i in ("yourtextfilename.txt") do (
ECHO XCOPY "%%i" "c:\yourdestfolder\"
)
for each line in the filename, where the filename is in double-quotes (usebackq) assign each line of the file to %%i in turn and XCOPY that file to c:\yourdestfolder\
The PROPOSED XCOPY will be echoed to the screen. This is deliberate to allow you to make sure that is what you want to do. To EXECUTE the XCOPY simply delete the ECHO keyword before it. If the "1 files copied" response irritates you, add >nul after "c:\yourdestfolder\" if you want to suppress the message.
"c:\yourdestfolder\" will be CREATED by XCOPY if it does not already exist. XCOPY will ask whether you want to overwrite existing files if there is already a file with the same name in "c:\yourdestfolder\" - which is why you may NOT want to suppress the messages.

How can I compile a report showing all used licenses with Ant? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm currently using Ant and Maven in different projects. To be compliant with some regulations, I'm in charge of listing all licenses used in each project.
With Maven, it is easy, as the Maven Project Info Reports Plugin generates such a report automatically.
As I'm not fond of searching licenses for all my JARs I'm using in the projects, I would like to know if there's a plugin for Ant, performing this task.
Thanks in advance!
Since this question hasn't got any hints, pointers or even answers, I hacked a solution by myself: license-report at github
The license-report is an Ant task which determines a license for most jar files. Currently, it searches in the following files for information:
META-INF/MANIFEST.MF
META-INF/LICENSE
LICENSE.txt
LICENSE
license/LICENSE.txt
license/LICENSE
These files are found in several common Open Source/Free Software libraries. Some libraries don't provide any information on their license (e.g. Spring framework).
For these libraries, the task does not find any information.
I will update the project as soon as possible that it prints out a nice xml and html report about the found licenses. Documentation and How To will follow, too.
I'm currently working on a demo project using this Ant task.
The demo project now creates an XML file with all library information. Just start it (with installed Ant) via ant build.xml in the root folder of license-report-demo. It prints out the location of the generated XML file. I will also include an XSLT to transform the XML into a nice HTML report. This will come in several days I think.
I create an XML file for further processing (e.g. CI systems like Hudson/Jenkins). This will help to generate a list of all licenses across projects in a central system.

What is sonar Delphi Plugin ? How to use it? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am using Delphi 7. I am trying to use Sonar Delphi Plgin, and I have confused what are the things I need to follow, could anybody guide me through Sonar Delphi usage i.e. installation and how to use it.
If possible pl provide the link, coz I have gone through the link below, but it gives me only jar file:
http://docs.codehaus.org/display/SONAR/Delphi+Plugin
And confused with one more link:
http://sonar.15.n6.nabble.com/sonar-dev-VOTE-Delphi-plugin-td4523726.html
Here is the following link for Sonar runner:
http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner
Based off of recent memory of getting this working.
Ensure Java 6 SDK installed (Delphi addon doesn't work with Java 7)
Download the Sonar application: http://www.sonarsource.org/downloads/
Install Sonar
Run Sonar (StartSonar.bat)
Once logged on (default user/pass is admin) install the Delphi add-on via the Update Center list of Available Plugins. See: http://docs.sonarqube.org/display/SONAR/Update+Center
Grab the example project files from the Github repository:
https://github.com/SonarSource/sonar-examples/tree/master/projects/languages
There's a Delphi sample in there demonstrating how to configure a sonar-project.properties file that points to your source code directories.
After setting the SONAR_RUNNER_HOME environment variable, exec 'sonar-runner' in the folder with your configured properties file to have Sonar parse through the Delphi project files.
I plan to go back to play with this, but it failed to process most of the code I threw at it so I walked away a bit disappointed. It seems like a pretty cool system.

Target 5 vector_math directory imports empty [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm following along the "Game of Darts" tutorial. I followed the instructions but I'm stuck at "Import libraries from a package". The vector_math dir appears empty after I save the pubspec.yaml file. Am I missing a step or is there a work around?
Thanks,
Adolfo
I followed the tutorial and could not reproduce the problem. Here are a few suggestions: make sure that you are using the latest version of Dart Editor (go to About Dart Editor in the main Dart Editor menu and make sure that your Editor is up to date.
Also, try closing the vector_victor files and collapsing the opened folders in the left bar and then reopen them. Does that do anything?
Finally, try running pub update and see if that does anything.
The suggestions above all seem a little arbitrary, but its hard to solve a problem that I am not able to recreate.
Did you run "pub install" or use "Tools > Pub Install" in Dart Editor?

BootStrap Error on iOS simulator persisting after restart [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I know it's a duplicate question. But does anyone have a real working solution?
Tried the following but in vain:
Restarted simulator: waste of time.
Restarted xcode: nothing happened.
Restarted system: I hate it, no use.
Kill the simulator process from terminal. Still issue persists.
Anyone have ever solved this issue really? Then please share the reason why this is happening and the solution also. NB: No such issue when running in ios device.
Perform steps from 1-to-5
1) Reset Simulator (or delete the app which freeze)
2) Delete project from organizer
3) Clean / Delete build
4) Exit Xcode
5) Restart System
These would definitely solved this problem.
This normally happens when more than one instance of the app runs on the simulator(When you repeatedly try to run the app without stopping it). You can try resetting the simulator and cleaning the build in Xcode. Also remember to quit and restart both simulator and Xcode.

Resources