SlideShare a Scribd company logo
MyTunes/build.xml
Builds, tests, and runs the project MyTunes.
MyTunes/build/classes/.netbeans_automatic_build
MyTunes/build/classes/.netbeans_update_resources
MyTunes/build/classes/mytunes/MyTunes.classpackage
mytunes;
publicsynchronizedclass MyTunes {
public void MyTunes();
publicstatic void main(String[]) throws java.io.IOException;
}
MyTunes/build/classes/mytunes/Song.classpackage mytunes;
publicsynchronizedclass Song {
privatestaticfinal int OLDEST_YEAR = 1950;
privatestatic int THIS_YEAR;
private String title;
private String artist;
private int year;
private int rating;
private char genre;
private double size;
private int minutes;
private int seconds;
private boolean ownIt;
public void Song();
publicstatic void setThisYear(int);
public void setOneSongsValues(String);
private void setTitle(String);
private void setArtist(String);
private void setYear(String);
private void setRating(String);
private void setGenre(String);
private void setSize(String);
private void setMinutes(String);
private void setSeconds(String);
private void setOwnIt(String);
private int getYear();
private String getTime();
private String getGenre();
private String getRatingStars();
private String getOwnIt();
public String toString();
}
MyTunes/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
MyTunes/nbproject/build-impl.xml
Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar
Must set javac.includes
No tests executed.
Must set JVM to use for profiling in profiler.info.jvm
Must set profiler agent JVM arguments in
profiler.info.jvmargs.agent
Must select some files in the IDE or set javac.includes
To run this application from the command line without
Ant, try:
java -jar "${dist.jar.resolved}"
Must select one file in the IDE or set run.class
Must select one file in the IDE or set run.class
Must select one file in the IDE or set debug.class
Must select one file in the IDE or set debug.class
Must set fix.includes
This target only works when run from inside the NetBeans
IDE.
Must select one file in the IDE or set profile.class
This target only works when run from inside the NetBeans
IDE.
This target only works when run from inside the NetBeans
IDE.
This target only works when run from inside the NetBeans
IDE.
Must select one file in the IDE or set run.class
Must select some files in the IDE or set test.includes
Must select one file in the IDE or set run.class
Must select one file in the IDE or set applet.url
Must select some files in the IDE or set javac.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.class
Must select some method in the IDE or set test.method
Some tests failed; see details above.
Must select one file in the IDE or set test.class
Must select one file in the IDE or set test.class
Must select some method in the IDE or set test.method
Must select one file in the IDE or set applet.url
Must select one file in the IDE or set applet.url
MyTunes/nbproject/genfiles.properties
build.xml.data.CRC32=5ae01187
build.xml.script.CRC32=ae0a1590
[email protected]
# This file is used by a NetBeans-based IDE to track changes in
generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will
never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=5ae01187
nbproject/build-impl.xml.script.CRC32=963f1a61
nbproject/[email protected]
MyTunes/nbproject/private/private.properties
compile.on.save=true
user.properties.file=C:Usersdonna_000AppDataRoaming
NetBeans8.0.2build.properties
MyTunes/nbproject/private/private.xml
file:/C:/Users/donna_000/Documents/+%20Classes%20(recent)/
1110/+%20%2012%20LECTURES%20Spring%202017/21%20T
ues%20Mar%2028/MyTunes/src/mytunes/MyTunes.java
file:/C:/Users/donna_000/Documents/+%20Classes%20(recent)/
1110/+%20%2012%20LECTURES%20Spring%202017/21%20T
ues%20Mar%2028/MyTunes/src/mytunes/Song.java
file:/C:/Users/donna_000/Documents/+%20Classes%20(recent)/
1110/+%20%2012%20LECTURES%20Spring%202017/21%20T
ues%20Mar%2028/MyTunes/RawDataSongs.csv
file:/C:/Users/donna_000/Documents/+%20Classes%20(recent)/
1110/+%20%2012%20LECTURES%20Spring%202017/21%20T
ues%20Mar%2028/MyTunes/TheReport.txt
MyTunes/nbproject/project.properties
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processor.options=
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.
dir}/ap-source-output
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection
transport:
#debug.transport=dt_socket
debug.classpath=
${run.classpath}
debug.test.classpath=
${run.test.classpath}
# Files in build.classes.dir which should be excluded from
distribution jar
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/MyTunes.jar
dist.javadoc.dir=${dist.dir}/javadoc
excludes=
includes=**
jar.compress=false
javac.classpath=
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.processorpath=
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=
${javac.classpath}:
${build.classes.dir}
javac.test.processorpath=
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
main.class=mytunes.MyTunes
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=
${javac.classpath}:
${build.classes.dir}
# Space-separated list of JVM arguments used when running the
project.
# You may also define separate properties like run-sys-
prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-
prop.name=value:
run.jvmargs=
run.test.classpath=
${javac.test.classpath}:
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
MyTunes/nbproject/project.xml
org.netbeans.modules.java.j2seproject
MyTunes
MyTunes/RawDataSongs.csvtitleartistyearratinggenresizeminute
ssecondsownItSuch Great Heights "Iron & Wine" 2004 5 "R"
3.9 4 13 "yes"Western "Mary Smith" 1995 4 "E" 47.9
9 61 "True"It's a Great Day "Maria Gomez" 1949 3 "A" 0.1
25 0 "maybe"Songs from the East "Yi Chang" 2017 2 "C"
20.59 20 24 "Y"Love & Life "Shana Jones" 1950 1 "Z" -
0.9 0 59 "no"Don't Invade MySpace "Tom Czujski" 2008 0 "U"
50.1 -2 20 "T"Let's Sing About JavaRaj Patel -999 8 "M"
1.987 20 19 "yeah"Java Programming "Nobody" 2018 5
"R" 3.2 3 2 "sure"
MyTunes/src/mytunes/MyTunes.javaMyTunes/src/mytunes/MyT
unes.java/* PROJECT: MyTunes
* AUTHOR: DESIGNER: Dr. Kaminski
* DESCRIPTION: This prints a report to a FILE based on raw
data in an input
* FILE. Certain cleanup/editing/processing needs to be don
e on the raw
* input data before it's ready for the report. That is all hand
led
* inside the OOP class (i.e., ENCAPSULATION) by its met
hods.
* INPUT FILE: RawDataSongs.csv
* HEADER RECORD contains metaData of field names, tho
ugh not N.
* DATA RECORDS contain these fields:
* title,artist,year,rating,genre,size,minutes,seconds,ownIt
* - "dirty data" which needs cleaning, editing
* - potentially bad data where defaults need to be used
* OUTPUT FILE: TheReport.txt
* NOTE: The STREAM PROCESSING "design pattern" is use
d, rather than a STORAGE
* BIN approach since this application can be handled with t
he algorithm:
* loop {
* read one record
* completely deal with that record once and for all
* }
* Therefore, a SINGLE OBJECT is all that's needed, and it's
REPEATEDLY
* used to deal with a SINGLE RECORD. This RE-
USE of a SINGLE OBJECT is
* preferable to declaring a new object for every record, but
then just
* never using the objects again after they're processed. Tha
t would end
* up potentially accumulating a lot of memory usage, one o
bject's worth
* for every record in a file, which could potentially be quite
large.
* NOTE: Some other OOP languages provide a DESTRUCTOR
(to correspond to the
* constructor) to return memory to the available pool. But J
ava, which
* runs on a "virtual machine" (the JVM) does "garbage colle
ction" when it
* so chooses -
so the programmer does not have control of when/if this
* happens.
* NOTE: A STORAGE BIN approach (e.g., an array of objects
or parallel arrays)
* would be used for applications where:
* -
all data needed to be available throughout the program, e.g.,
* - the app needed to determine the median value
* - the app need to sort the data
* - the user needed to repeatedly query the data
* HOWEVER, once you study random access files (in CS33
10, Data & File
* Structures), the "storage bin" could use a FILE rather t
han an
* ARRAY in MEMORY.
* ALSO DEMONSTRATES: a boolean flag to easily turn "deb
ug mode" on or off.
****************************************************
*************************/
package mytunes;
import java.io.*;
import java.util.Scanner;
import java.util.Date;// <<<<<<<<<<<
publicclassMyTunes{
publicstaticvoid main(String[] args)throwsIOException{
//--------------------------------------------------------
DEBUG SWITCH
boolean debug =true;
//--------------------------------------------------------
OPEN 2 FILES
File theFile =newFile("RawDataSongs.csv");
Scanner inFile =newScanner(theFile);
PrintWriter outFile =newPrintWriter("TheReport.txt");
String headerFormatStr;
//-----------------------------------------------------
DO HEADER LINES
// 1st line: date/time stamp (using current date & time)
Date todaysDate =newDate();
String dateAndTime = todaysDate.toString();
outFile.println(dateAndTime +"rn");
if(debug)
System.out.println(dateAndTime +"rn");
// Class needs the current system year for its "constant"
int thisYear =Integer.parseInt(dateAndTime.substring(24));
Song.setThisYear(thisYear);// static, so ClassName.methodNam
e
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// READ header record metaData from input, WRITE header lin
e to report
String line = inFile.nextLine();
String[] field = line.split(",");
headerFormatStr ="%-21s %-11s%-6s %-4s %4s %-
7s %c%c:%c%c %srnrn";
outFile.printf(headerFormatStr,
field[0],field[1],field[3],field[2],field[5],field[4],
// title artist rating year size genre
field[6].charAt(0),field[6].charAt(0),// mm
field[7].charAt(0),field[7].charAt(0),// ss
field[8]);// ownIt
if(debug)
System.out.printf(headerFormatStr,
field[0],field[1],field[3],field[2],field[5],field[4],
field[6].charAt(0),field[6].charAt(0),
field[7].charAt(0),field[7].charAt(0),
field[8]);
//--------------------------------
HANDLE DATA RECORDS for DETAIL LINES
Song aSong =newSong();// only need ONE object, which is reUs
ed
// [Don't put it inside loop]
// >>>>>>>>> TO DO - incremental development:
// 1) make program work for JUST ONE RECORD (1 song). W
hen that works...
// 2) add a loop structure here to process the whole file
String record = inFile.nextLine();
aSong.setOneSongsValues(record);
outFile.println(aSong);
if(debug)
System.out.println(aSong);// assumes toString method
//---------------------------------------------------------
CLOSE FILES
inFile.close();
outFile.close();
System.out.println("nDONE -
see TheReport.txt file in project folder");
}
}
MyTunes/src/mytunes/Song.javaMyTunes/src/mytunes/Song.jav
a/* CLASS: Song USED BY MyTunes PROJECT
* AUTHOR: DESIGNER: Dr. Kaminski
* DESCRIPTION: This class does all handling of a SINGLE S
ong.
* It does NOT know that the whole project involves MANY
Song objects.
* There is only a SINGLE object declared, which is RE-
USED for every Song
* since the Stream Processing Algorithm suffices.
* SETTING: The setOneSongsValues does basic "dirty data" cl
eanup.
* The individual setters do the:
* - data type conversions (from Strings to ...), if needed
* - editing for validity-
checking (legal & reasonableness checking)
* - changing bad data into devault values.
* GETTING: The toString method does the overall "getting" of
a Song's data.
* It uses some instance variables directly. But where a "tra
nsformation"
* is needed, toString will call the appropriate getter.
****************************************************
*************************/
package mytunes;
publicclassSong{
//--------------------------------------------------------
STATIC CONSTANTS
privatefinalstaticint OLDEST_YEAR =1950;
privatestaticint THIS_YEAR;
publicstaticvoid setThisYear(int systemYear){
THIS_YEAR = systemYear;
}
//------------------------------------------------------
INSTANCE VARIABLES
privateString title;
privateString artist;
privateint year;
privateint rating;
privatechar genre;
privatedouble size;
privateint minutes;
privateint seconds;
privateboolean ownIt;
//---------------------------------------------------
SPECIAL SETTER METHOD
// This method acts as the miniMain of the class for doing the "s
etting" of
// the instance variables. It:
// 1st) does overall cleanup & splitting of the record
// 2nd) calls all the individual variable setters to clean up an
d edit
// their respective fields.
publicvoid setOneSongsValues(String oneRecord){
// - remove all the " from the whole record
oneRecord = oneRecord.replace(""","");
// - split the record into fields
String field[]=newString[9];
field = oneRecord.split(",");
// - go through fields and trim the leading white space
for(int i =1; i < field.length; i++)// field[0] not need it
field[i]= field[i].trim();
// -
call the 9 individual setter methods, supplying correct paramete
rs
// setTitle( );
// setArtist( );
// setYear( );
// setRating( );
// setGenre( );
// setSize( );
// setMinutes( );
// setSeconds( );
// setOwnIt( );
}
//-----------------------------------------------
INDIVIDUAL SETTER METHODS
// NOTE: These are PRIVATE since application program calls t
he
// setOneSongsValues method, which in turn calls these sette
r methods.
// DataType conversions, editing & default value substitutions a
re needed
// on SOME FIELDS. Assume it's just a simple assignment,
e.g.,
// this.title = title; if NO CONSTRAINTS are specified be
low.
// YEAR -
String input is 4 digits, 2011, but only store right 2 digits: 11
// - it must be between oldest year & this year (inclusive),
// IF NOT, change it to this year
// RATING - must be a valid integer between 0 & 5 (inclusive),
// IF NOT, change it to 0
// GENRE - valid genre's: R, F, C, N, W, M, A, E,
// IF NOT, change it to default O (char O, for Other, not z
ero, 0)
// [NOTE: a switch statement for this]
// SIZE (in MB) -
reasonable range: 0.2 to 50.0 (200 KB to 50 MB) inclusive,
// IF NOT, change it to a 0.2
// MINUTES - reasonable range: 0-20 (inclusive)
// IF NOT, change it to 1
// SECONDS - valid range: 0-59 (inclusive)
// IF NOT, change it to 0
//- - - - - - - - - - - - - - - - - - -
privatevoid setTitle(String title){
this.title = title;
}
privatevoid setArtist(String artist){
}
privatevoid setYear(String year){
}
privatevoid setRating(String rating){
}
privatevoid setGenre(String genre){
}
privatevoid setSize(String size){
}
privatevoid setMinutes(String minutes){
}
privatevoid setSeconds(String seconds){
}
privatevoid setOwnIt(String ownIt){
}
//----------------------------------------------------------
GETTER METHODS
// NOTE: These are PRIVATE since application program calls t
he toString
// method here, which in turn uses these getter methods.
// Some attributes (instance variables) don't need a getter becaus
e no
// work needs to be done to transform their values, when toSt
ring uses
// them. So only write getters where toString can't use the in
stance
// variable directly, as is.
// YEAR stored as 2-digits, but toString wants a 4-digit year.
// Getter adds either 20 or 19 in front of the 2-
digit year. Assume:
// - a 2-digit year <= THIS_YEAR - 2000 ---
>>> use 20 on front
// - otherwise --->>> use 19 on front
// TIME stored as TWO fields, but toString wants a single Strin
g.
// Getter combines minutes & seconds with a : between -
like 9:32
// GENRE stored as a single char, but toString wants a whole w
ord.
// Getter uses a switch on genre to determine the word (a Stri
ng):
// Rock, Folk, Classic, NewAge, World, Movie, Alt, Easy
Lis, Other
// RATING stored as an int, but toString wants that number of *'
s instead.
// Getter returns a String of size 5, with the appropriate num
ber of
// *'s on the left, space-
padded on right (or "none " for 0) based on
// the rating int. [Use a switch statment].
// OWNIT stored as a boolean (true/false), but toString wants a
Yes or No.
// Getter returns a String for this.
//- - - - - - - - - - - - - - - - - - -
privateint getYear(){
return0;// A TEMPORARY DUMMY VALUE TO MAKE CODE
COMPILE
}
privateString getTime(){
return"DUMMY";// A TEMPORARY DUMMY VALUE TO MA
KE CODE COMPILE
}
privateString getGenre(){
return"DUMMY";// A TEMPORARY DUMMY VALUE TO MA
KE CODE COMPILE
}
privateString getRatingStars(){
return"DUMMY";// A TEMPORARY DUMMY VALUE TO MA
KE CODE COMPILE
}
privateString getOwnIt(){
return"DUMMY";// A TEMPORARY DUMMY VALUE TO MA
KE CODE COMPILE
}
//------------------------------------------------------
CONSTRUCTOR METHOD
// Default constructor used.
//---------------------------------------------------------
toString METHOD
// uses String.format to build a SINGLE String containing one s
ong's data
// For example, input record 1's data would produce this string:
// Such Great Heights Iron & Wine ***** 2004 3.9 Rock 4
:13 Yes
// FYI: headerFormatStr was the following, if this helps with co
l widths:
// headerFormatStr = "%-21s %-11s%-6s %-4s %4s %-
7s %c%c:%c%c %srnrn";
// NOTES:
// -
Use example above to count number of columns to specify for e
ach field.
// - LEFT-justify all fields, except size which must be RIGHT-
justified.
// -
Year shows as 4 digits (forced to 4 by the getter, not this metho
d).
// - Size shows only 1 digit after the decimal point.
// -
getTime, getRating, getGenre, getOwnIt GETTERS determine t
he correct
// results to use here -
don't construct those here in toString method.
publicString toString(){
String theSong ="";
return theSong;
}
//---------------------------------------------------------
PRIVATE METHODS
// Use private methods here if a setter/getter/constructor method
needs
// modularizing.
}
MyTunes/TheReport.txt
Sun Mar 26 12:06:00 EDT 2017
title artist rating year size genre mm:ss ownIt

More Related Content

Similar to MyTunesbuild.xml Builds, tests, and runs the project M.docx

Total Compensationbuild.xml Builds, tests, and runs th.docx
Total Compensationbuild.xml      Builds, tests, and runs th.docxTotal Compensationbuild.xml      Builds, tests, and runs th.docx
Total Compensationbuild.xml Builds, tests, and runs th.docx
turveycharlyn
 
Using Ant To Build J2 Ee Applications
Using Ant To Build J2 Ee ApplicationsUsing Ant To Build J2 Ee Applications
Using Ant To Build J2 Ee Applications
Rajesh Kumar
 
Java Builds with Maven and Ant
Java Builds with Maven and AntJava Builds with Maven and Ant
Java Builds with Maven and Ant
David Noble
 
Maven2交流
Maven2交流Maven2交流
Maven2交流
ChangQi Lin
 
Testing Ansible
Testing AnsibleTesting Ansible
Testing Ansible
Anth Courtney
 
Maven and j unit introduction
Maven and j unit introductionMaven and j unit introduction
Maven and j unit introduction
Sergii Fesenko
 
Core java &collections
Core java &collectionsCore java &collections
Core java &collections
Ravi varma
 
Core java1
Core java1Core java1
Core java1
Ravi varma
 
Core java
Core java Core java
Core java
Ravi varma
 
Bring the fun back to java
Bring the fun back to javaBring the fun back to java
Bring the fun back to java
ciklum_ods
 
CommissionCalculationbuildclasses.netbeans_automatic_build.docx
CommissionCalculationbuildclasses.netbeans_automatic_build.docxCommissionCalculationbuildclasses.netbeans_automatic_build.docx
CommissionCalculationbuildclasses.netbeans_automatic_build.docx
monicafrancis71118
 
Java For Automation
Java   For AutomationJava   For Automation
Java For Automation
Abhijeet Dubey
 
Junit and testNG
Junit and testNGJunit and testNG
Junit and testNG
Марія Русин
 
Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018
Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018
Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018
Codemotion
 
Commenting in Agile Development
Commenting in Agile DevelopmentCommenting in Agile Development
Commenting in Agile DevelopmentJan Rybák Benetka
 
Organizing Machine Learning Projects - Repository Organization
Organizing Machine Learning Projects - Repository OrganizationOrganizing Machine Learning Projects - Repository Organization
Organizing Machine Learning Projects - Repository Organization
Hao-Wen (Herman) Dong
 
Project3build.xml Builds, tests, and runs the project .docx
Project3build.xml      Builds, tests, and runs the project .docxProject3build.xml      Builds, tests, and runs the project .docx
Project3build.xml Builds, tests, and runs the project .docx
woodruffeloisa
 

Similar to MyTunesbuild.xml Builds, tests, and runs the project M.docx (20)

Total Compensationbuild.xml Builds, tests, and runs th.docx
Total Compensationbuild.xml      Builds, tests, and runs th.docxTotal Compensationbuild.xml      Builds, tests, and runs th.docx
Total Compensationbuild.xml Builds, tests, and runs th.docx
 
Using Ant To Build J2 Ee Applications
Using Ant To Build J2 Ee ApplicationsUsing Ant To Build J2 Ee Applications
Using Ant To Build J2 Ee Applications
 
Java Builds with Maven and Ant
Java Builds with Maven and AntJava Builds with Maven and Ant
Java Builds with Maven and Ant
 
Maven2交流
Maven2交流Maven2交流
Maven2交流
 
Testing Ansible
Testing AnsibleTesting Ansible
Testing Ansible
 
Maven and j unit introduction
Maven and j unit introductionMaven and j unit introduction
Maven and j unit introduction
 
Core java &collections
Core java &collectionsCore java &collections
Core java &collections
 
Core java1
Core java1Core java1
Core java1
 
Core java
Core java Core java
Core java
 
Bring the fun back to java
Bring the fun back to javaBring the fun back to java
Bring the fun back to java
 
CommissionCalculationbuildclasses.netbeans_automatic_build.docx
CommissionCalculationbuildclasses.netbeans_automatic_build.docxCommissionCalculationbuildclasses.netbeans_automatic_build.docx
CommissionCalculationbuildclasses.netbeans_automatic_build.docx
 
Java For Automation
Java   For AutomationJava   For Automation
Java For Automation
 
Having Fun with Play
Having Fun with PlayHaving Fun with Play
Having Fun with Play
 
Junit and testNG
Junit and testNGJunit and testNG
Junit and testNG
 
Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018
Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018
Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018
 
Commenting in Agile Development
Commenting in Agile DevelopmentCommenting in Agile Development
Commenting in Agile Development
 
Ext 0523
Ext 0523Ext 0523
Ext 0523
 
Organizing Machine Learning Projects - Repository Organization
Organizing Machine Learning Projects - Repository OrganizationOrganizing Machine Learning Projects - Repository Organization
Organizing Machine Learning Projects - Repository Organization
 
Project3build.xml Builds, tests, and runs the project .docx
Project3build.xml      Builds, tests, and runs the project .docxProject3build.xml      Builds, tests, and runs the project .docx
Project3build.xml Builds, tests, and runs the project .docx
 
Ant
AntAnt
Ant
 

More from gilpinleeanna

Name 1. The table shows the number of days per week, x, that 100.docx
Name 1. The table shows the number of days per week, x, that 100.docxName 1. The table shows the number of days per week, x, that 100.docx
Name 1. The table shows the number of days per week, x, that 100.docx
gilpinleeanna
 
Name _____________________Date ________________________ESL.docx
Name  _____________________Date  ________________________ESL.docxName  _____________________Date  ________________________ESL.docx
Name _____________________Date ________________________ESL.docx
gilpinleeanna
 
Name Bijapur Fort Year 1599 Location Bijapur city.docx
Name Bijapur Fort Year 1599 Location Bijapur city.docxName Bijapur Fort Year 1599 Location Bijapur city.docx
Name Bijapur Fort Year 1599 Location Bijapur city.docx
gilpinleeanna
 
Name _______________________________ (Ex2 rework) CHM 33.docx
Name  _______________________________ (Ex2 rework) CHM 33.docxName  _______________________________ (Ex2 rework) CHM 33.docx
Name _______________________________ (Ex2 rework) CHM 33.docx
gilpinleeanna
 
Name 1 Should Transportation Security Officers Be A.docx
Name 1 Should Transportation Security Officers Be A.docxName 1 Should Transportation Security Officers Be A.docx
Name 1 Should Transportation Security Officers Be A.docx
gilpinleeanna
 
Name Don’t ForgetDate UNIT 3 TEST(The direct.docx
Name   Don’t ForgetDate       UNIT 3 TEST(The direct.docxName   Don’t ForgetDate       UNIT 3 TEST(The direct.docx
Name Don’t ForgetDate UNIT 3 TEST(The direct.docx
gilpinleeanna
 
Name Add name hereConcept Matching From Disease to Treatmen.docx
Name  Add name hereConcept Matching From Disease to Treatmen.docxName  Add name hereConcept Matching From Disease to Treatmen.docx
Name Add name hereConcept Matching From Disease to Treatmen.docx
gilpinleeanna
 
Name Abdulla AlsuwaidiITA 160Uncle VanyaMan has been en.docx
Name Abdulla AlsuwaidiITA 160Uncle VanyaMan has been en.docxName Abdulla AlsuwaidiITA 160Uncle VanyaMan has been en.docx
Name Abdulla AlsuwaidiITA 160Uncle VanyaMan has been en.docx
gilpinleeanna
 
Name Add name hereHIM 2214 Module 6 Medical Record Abstractin.docx
Name  Add name hereHIM 2214 Module 6 Medical Record Abstractin.docxName  Add name hereHIM 2214 Module 6 Medical Record Abstractin.docx
Name Add name hereHIM 2214 Module 6 Medical Record Abstractin.docx
gilpinleeanna
 
Name Sophocles, AntigoneMain Characters Antigone, Cre.docx
Name    Sophocles, AntigoneMain Characters Antigone, Cre.docxName    Sophocles, AntigoneMain Characters Antigone, Cre.docx
Name Sophocles, AntigoneMain Characters Antigone, Cre.docx
gilpinleeanna
 
N4455 Nursing Leadership and ManagementWeek 3 Assignment 1.docx
N4455 Nursing Leadership and ManagementWeek 3 Assignment 1.docxN4455 Nursing Leadership and ManagementWeek 3 Assignment 1.docx
N4455 Nursing Leadership and ManagementWeek 3 Assignment 1.docx
gilpinleeanna
 
Name Habitable Zones – Student GuideExercisesPlease r.docx
Name  Habitable Zones – Student GuideExercisesPlease r.docxName  Habitable Zones – Student GuideExercisesPlease r.docx
Name Habitable Zones – Student GuideExercisesPlease r.docx
gilpinleeanna
 
Name Class Date SKILL ACTIVITY Giving an Eff.docx
Name    Class    Date   SKILL ACTIVITY Giving an Eff.docxName    Class    Date   SKILL ACTIVITY Giving an Eff.docx
Name Class Date SKILL ACTIVITY Giving an Eff.docx
gilpinleeanna
 
Name Speech Title I. Intro A) Atten.docx
Name  Speech Title    I. Intro  A) Atten.docxName  Speech Title    I. Intro  A) Atten.docx
Name Speech Title I. Intro A) Atten.docx
gilpinleeanna
 
n engl j med 352;16www.nejm.org april 21, .docx
n engl j med 352;16www.nejm.org april 21, .docxn engl j med 352;16www.nejm.org april 21, .docx
n engl j med 352;16www.nejm.org april 21, .docx
gilpinleeanna
 
Name Class Date HUMR 211 Spr.docx
Name     Class     Date    HUMR 211 Spr.docxName     Class     Date    HUMR 211 Spr.docx
Name Class Date HUMR 211 Spr.docx
gilpinleeanna
 
NAME ----------------------------------- CLASS -------------- .docx
NAME ----------------------------------- CLASS -------------- .docxNAME ----------------------------------- CLASS -------------- .docx
NAME ----------------------------------- CLASS -------------- .docx
gilpinleeanna
 
NAHQ Code of Ethics and Standards of Practice ©Copyright 2011 .docx
NAHQ Code of Ethics and Standards of Practice ©Copyright 2011 .docxNAHQ Code of Ethics and Standards of Practice ©Copyright 2011 .docx
NAHQ Code of Ethics and Standards of Practice ©Copyright 2011 .docx
gilpinleeanna
 
Name Understanding by Design (UbD) TemplateStage 1—Desir.docx
Name  Understanding by Design (UbD) TemplateStage 1—Desir.docxName  Understanding by Design (UbD) TemplateStage 1—Desir.docx
Name Understanding by Design (UbD) TemplateStage 1—Desir.docx
gilpinleeanna
 
Name MUS108 Music Cultures of the World .docx
Name              MUS108 Music Cultures of the World              .docxName              MUS108 Music Cultures of the World              .docx
Name MUS108 Music Cultures of the World .docx
gilpinleeanna
 

More from gilpinleeanna (20)

Name 1. The table shows the number of days per week, x, that 100.docx
Name 1. The table shows the number of days per week, x, that 100.docxName 1. The table shows the number of days per week, x, that 100.docx
Name 1. The table shows the number of days per week, x, that 100.docx
 
Name _____________________Date ________________________ESL.docx
Name  _____________________Date  ________________________ESL.docxName  _____________________Date  ________________________ESL.docx
Name _____________________Date ________________________ESL.docx
 
Name Bijapur Fort Year 1599 Location Bijapur city.docx
Name Bijapur Fort Year 1599 Location Bijapur city.docxName Bijapur Fort Year 1599 Location Bijapur city.docx
Name Bijapur Fort Year 1599 Location Bijapur city.docx
 
Name _______________________________ (Ex2 rework) CHM 33.docx
Name  _______________________________ (Ex2 rework) CHM 33.docxName  _______________________________ (Ex2 rework) CHM 33.docx
Name _______________________________ (Ex2 rework) CHM 33.docx
 
Name 1 Should Transportation Security Officers Be A.docx
Name 1 Should Transportation Security Officers Be A.docxName 1 Should Transportation Security Officers Be A.docx
Name 1 Should Transportation Security Officers Be A.docx
 
Name Don’t ForgetDate UNIT 3 TEST(The direct.docx
Name   Don’t ForgetDate       UNIT 3 TEST(The direct.docxName   Don’t ForgetDate       UNIT 3 TEST(The direct.docx
Name Don’t ForgetDate UNIT 3 TEST(The direct.docx
 
Name Add name hereConcept Matching From Disease to Treatmen.docx
Name  Add name hereConcept Matching From Disease to Treatmen.docxName  Add name hereConcept Matching From Disease to Treatmen.docx
Name Add name hereConcept Matching From Disease to Treatmen.docx
 
Name Abdulla AlsuwaidiITA 160Uncle VanyaMan has been en.docx
Name Abdulla AlsuwaidiITA 160Uncle VanyaMan has been en.docxName Abdulla AlsuwaidiITA 160Uncle VanyaMan has been en.docx
Name Abdulla AlsuwaidiITA 160Uncle VanyaMan has been en.docx
 
Name Add name hereHIM 2214 Module 6 Medical Record Abstractin.docx
Name  Add name hereHIM 2214 Module 6 Medical Record Abstractin.docxName  Add name hereHIM 2214 Module 6 Medical Record Abstractin.docx
Name Add name hereHIM 2214 Module 6 Medical Record Abstractin.docx
 
Name Sophocles, AntigoneMain Characters Antigone, Cre.docx
Name    Sophocles, AntigoneMain Characters Antigone, Cre.docxName    Sophocles, AntigoneMain Characters Antigone, Cre.docx
Name Sophocles, AntigoneMain Characters Antigone, Cre.docx
 
N4455 Nursing Leadership and ManagementWeek 3 Assignment 1.docx
N4455 Nursing Leadership and ManagementWeek 3 Assignment 1.docxN4455 Nursing Leadership and ManagementWeek 3 Assignment 1.docx
N4455 Nursing Leadership and ManagementWeek 3 Assignment 1.docx
 
Name Habitable Zones – Student GuideExercisesPlease r.docx
Name  Habitable Zones – Student GuideExercisesPlease r.docxName  Habitable Zones – Student GuideExercisesPlease r.docx
Name Habitable Zones – Student GuideExercisesPlease r.docx
 
Name Class Date SKILL ACTIVITY Giving an Eff.docx
Name    Class    Date   SKILL ACTIVITY Giving an Eff.docxName    Class    Date   SKILL ACTIVITY Giving an Eff.docx
Name Class Date SKILL ACTIVITY Giving an Eff.docx
 
Name Speech Title I. Intro A) Atten.docx
Name  Speech Title    I. Intro  A) Atten.docxName  Speech Title    I. Intro  A) Atten.docx
Name Speech Title I. Intro A) Atten.docx
 
n engl j med 352;16www.nejm.org april 21, .docx
n engl j med 352;16www.nejm.org april 21, .docxn engl j med 352;16www.nejm.org april 21, .docx
n engl j med 352;16www.nejm.org april 21, .docx
 
Name Class Date HUMR 211 Spr.docx
Name     Class     Date    HUMR 211 Spr.docxName     Class     Date    HUMR 211 Spr.docx
Name Class Date HUMR 211 Spr.docx
 
NAME ----------------------------------- CLASS -------------- .docx
NAME ----------------------------------- CLASS -------------- .docxNAME ----------------------------------- CLASS -------------- .docx
NAME ----------------------------------- CLASS -------------- .docx
 
NAHQ Code of Ethics and Standards of Practice ©Copyright 2011 .docx
NAHQ Code of Ethics and Standards of Practice ©Copyright 2011 .docxNAHQ Code of Ethics and Standards of Practice ©Copyright 2011 .docx
NAHQ Code of Ethics and Standards of Practice ©Copyright 2011 .docx
 
Name Understanding by Design (UbD) TemplateStage 1—Desir.docx
Name  Understanding by Design (UbD) TemplateStage 1—Desir.docxName  Understanding by Design (UbD) TemplateStage 1—Desir.docx
Name Understanding by Design (UbD) TemplateStage 1—Desir.docx
 
Name MUS108 Music Cultures of the World .docx
Name              MUS108 Music Cultures of the World              .docxName              MUS108 Music Cultures of the World              .docx
Name MUS108 Music Cultures of the World .docx
 

Recently uploaded

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Reflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPointReflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPoint
amberjdewit93
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
AG2 Design
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 

Recently uploaded (20)

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Reflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPointReflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPoint
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 

MyTunesbuild.xml Builds, tests, and runs the project M.docx

  • 1. MyTunes/build.xml Builds, tests, and runs the project MyTunes. MyTunes/build/classes/.netbeans_automatic_build MyTunes/build/classes/.netbeans_update_resources MyTunes/build/classes/mytunes/MyTunes.classpackage mytunes; publicsynchronizedclass MyTunes { public void MyTunes(); publicstatic void main(String[]) throws java.io.IOException; } MyTunes/build/classes/mytunes/Song.classpackage mytunes; publicsynchronizedclass Song { privatestaticfinal int OLDEST_YEAR = 1950; privatestatic int THIS_YEAR; private String title; private String artist; private int year; private int rating; private char genre; private double size; private int minutes; private int seconds; private boolean ownIt; public void Song();
  • 2. publicstatic void setThisYear(int); public void setOneSongsValues(String); private void setTitle(String); private void setArtist(String); private void setYear(String); private void setRating(String); private void setGenre(String); private void setSize(String); private void setMinutes(String); private void setSeconds(String); private void setOwnIt(String); private int getYear(); private String getTime(); private String getGenre(); private String getRatingStars(); private String getOwnIt(); public String toString(); } MyTunes/manifest.mf Manifest-Version: 1.0 X-COMMENT: Main-Class will be added automatically by build MyTunes/nbproject/build-impl.xml
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. Must set src.dir Must set test.src.dir Must set build.dir Must set dist.dir Must set build.classes.dir Must set dist.javadoc.dir Must set build.test.classes.dir Must set build.test.results.dir Must set build.classes.excludes Must set dist.jar
  • 9.
  • 10.
  • 12.
  • 13.
  • 14.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21. Must set JVM to use for profiling in profiler.info.jvm Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28. Must select some files in the IDE or set javac.includes
  • 29. To run this application from the command line without Ant, try: java -jar "${dist.jar.resolved}"
  • 30. Must select one file in the IDE or set run.class Must select one file in the IDE or set run.class
  • 31. Must select one file in the IDE or set debug.class Must select one file in the IDE or set debug.class Must set fix.includes
  • 32. This target only works when run from inside the NetBeans IDE. Must select one file in the IDE or set profile.class This target only works when run from inside the NetBeans IDE. This target only works when run from inside the NetBeans IDE. This target only works when run from inside the NetBeans
  • 33. IDE.
  • 34. Must select one file in the IDE or set run.class Must select some files in the IDE or set test.includes Must select one file in the IDE or set run.class Must select one file in the IDE or set applet.url
  • 35.
  • 36. Must select some files in the IDE or set javac.includes Some tests failed; see details above.
  • 37. Must select some files in the IDE or set test.includes Some tests failed; see details above. Must select some files in the IDE or set test.class Must select some method in the IDE or set test.method Some tests failed; see details above. Must select one file in the IDE or set test.class Must select one file in the IDE or set test.class Must select some method in the IDE or set test.method
  • 38. Must select one file in the IDE or set applet.url Must select one file in the IDE or set applet.url
  • 39.
  • 40. MyTunes/nbproject/genfiles.properties build.xml.data.CRC32=5ae01187 build.xml.script.CRC32=ae0a1590 [email protected] # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=5ae01187 nbproject/build-impl.xml.script.CRC32=963f1a61 nbproject/[email protected] MyTunes/nbproject/private/private.properties compile.on.save=true user.properties.file=C:Usersdonna_000AppDataRoaming NetBeans8.0.2build.properties MyTunes/nbproject/private/private.xml file:/C:/Users/donna_000/Documents/+%20Classes%20(recent)/ 1110/+%20%2012%20LECTURES%20Spring%202017/21%20T
  • 41. ues%20Mar%2028/MyTunes/src/mytunes/MyTunes.java file:/C:/Users/donna_000/Documents/+%20Classes%20(recent)/ 1110/+%20%2012%20LECTURES%20Spring%202017/21%20T ues%20Mar%2028/MyTunes/src/mytunes/Song.java file:/C:/Users/donna_000/Documents/+%20Classes%20(recent)/ 1110/+%20%2012%20LECTURES%20Spring%202017/21%20T ues%20Mar%2028/MyTunes/RawDataSongs.csv file:/C:/Users/donna_000/Documents/+%20Classes%20(recent)/ 1110/+%20%2012%20LECTURES%20Spring%202017/21%20T ues%20Mar%2028/MyTunes/TheReport.txt MyTunes/nbproject/project.properties annotation.processing.enabled=true annotation.processing.enabled.in.editor=false annotation.processing.processor.options= annotation.processing.processors.list= annotation.processing.run.all.processors=true annotation.processing.source.output=${build.generated.sources. dir}/ap-source-output build.classes.dir=${build.dir}/classes build.classes.excludes=**/*.java,**/*.form # This directory is removed when the project is cleaned:
  • 42. build.dir=build build.generated.dir=${build.dir}/generated build.generated.sources.dir=${build.dir}/generated-sources # Only compile against the classpath explicitly listed here: build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes build.test.results.dir=${build.dir}/test/results # Uncomment to specify the preferred debugger connection transport: #debug.transport=dt_socket debug.classpath= ${run.classpath} debug.test.classpath= ${run.test.classpath} # Files in build.classes.dir which should be excluded from distribution jar dist.archive.excludes= # This directory is removed when the project is cleaned: dist.dir=dist
  • 43. dist.jar=${dist.dir}/MyTunes.jar dist.javadoc.dir=${dist.dir}/javadoc excludes= includes=** jar.compress=false javac.classpath= # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false javac.processorpath= ${javac.classpath} javac.source=1.8 javac.target=1.8 javac.test.classpath= ${javac.classpath}: ${build.classes.dir} javac.test.processorpath= ${javac.test.classpath}
  • 45. ${build.classes.dir} # Space-separated list of JVM arguments used when running the project. # You may also define separate properties like run-sys- prop.name=value instead of -Dname=value. # To set system properties for unit tests define test-sys- prop.name=value: run.jvmargs= run.test.classpath= ${javac.test.classpath}: ${build.test.classes.dir} source.encoding=UTF-8 src.dir=src test.src.dir=test MyTunes/nbproject/project.xml org.netbeans.modules.java.j2seproject MyTunes
  • 46. MyTunes/RawDataSongs.csvtitleartistyearratinggenresizeminute ssecondsownItSuch Great Heights "Iron & Wine" 2004 5 "R" 3.9 4 13 "yes"Western "Mary Smith" 1995 4 "E" 47.9 9 61 "True"It's a Great Day "Maria Gomez" 1949 3 "A" 0.1 25 0 "maybe"Songs from the East "Yi Chang" 2017 2 "C" 20.59 20 24 "Y"Love & Life "Shana Jones" 1950 1 "Z" - 0.9 0 59 "no"Don't Invade MySpace "Tom Czujski" 2008 0 "U" 50.1 -2 20 "T"Let's Sing About JavaRaj Patel -999 8 "M" 1.987 20 19 "yeah"Java Programming "Nobody" 2018 5 "R" 3.2 3 2 "sure" MyTunes/src/mytunes/MyTunes.javaMyTunes/src/mytunes/MyT unes.java/* PROJECT: MyTunes * AUTHOR: DESIGNER: Dr. Kaminski * DESCRIPTION: This prints a report to a FILE based on raw data in an input * FILE. Certain cleanup/editing/processing needs to be don e on the raw * input data before it's ready for the report. That is all hand led * inside the OOP class (i.e., ENCAPSULATION) by its met hods. * INPUT FILE: RawDataSongs.csv * HEADER RECORD contains metaData of field names, tho ugh not N. * DATA RECORDS contain these fields: * title,artist,year,rating,genre,size,minutes,seconds,ownIt * - "dirty data" which needs cleaning, editing
  • 47. * - potentially bad data where defaults need to be used * OUTPUT FILE: TheReport.txt * NOTE: The STREAM PROCESSING "design pattern" is use d, rather than a STORAGE * BIN approach since this application can be handled with t he algorithm: * loop { * read one record * completely deal with that record once and for all * } * Therefore, a SINGLE OBJECT is all that's needed, and it's REPEATEDLY * used to deal with a SINGLE RECORD. This RE- USE of a SINGLE OBJECT is * preferable to declaring a new object for every record, but then just * never using the objects again after they're processed. Tha t would end * up potentially accumulating a lot of memory usage, one o bject's worth * for every record in a file, which could potentially be quite large. * NOTE: Some other OOP languages provide a DESTRUCTOR (to correspond to the * constructor) to return memory to the available pool. But J ava, which * runs on a "virtual machine" (the JVM) does "garbage colle ction" when it * so chooses - so the programmer does not have control of when/if this * happens. * NOTE: A STORAGE BIN approach (e.g., an array of objects or parallel arrays) * would be used for applications where: * - all data needed to be available throughout the program, e.g.,
  • 48. * - the app needed to determine the median value * - the app need to sort the data * - the user needed to repeatedly query the data * HOWEVER, once you study random access files (in CS33 10, Data & File * Structures), the "storage bin" could use a FILE rather t han an * ARRAY in MEMORY. * ALSO DEMONSTRATES: a boolean flag to easily turn "deb ug mode" on or off. **************************************************** *************************/ package mytunes; import java.io.*; import java.util.Scanner; import java.util.Date;// <<<<<<<<<<< publicclassMyTunes{ publicstaticvoid main(String[] args)throwsIOException{ //-------------------------------------------------------- DEBUG SWITCH boolean debug =true; //-------------------------------------------------------- OPEN 2 FILES File theFile =newFile("RawDataSongs.csv"); Scanner inFile =newScanner(theFile); PrintWriter outFile =newPrintWriter("TheReport.txt"); String headerFormatStr; //----------------------------------------------------- DO HEADER LINES // 1st line: date/time stamp (using current date & time) Date todaysDate =newDate(); String dateAndTime = todaysDate.toString(); outFile.println(dateAndTime +"rn"); if(debug) System.out.println(dateAndTime +"rn");
  • 49. // Class needs the current system year for its "constant" int thisYear =Integer.parseInt(dateAndTime.substring(24)); Song.setThisYear(thisYear);// static, so ClassName.methodNam e // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // READ header record metaData from input, WRITE header lin e to report String line = inFile.nextLine(); String[] field = line.split(","); headerFormatStr ="%-21s %-11s%-6s %-4s %4s %- 7s %c%c:%c%c %srnrn"; outFile.printf(headerFormatStr, field[0],field[1],field[3],field[2],field[5],field[4], // title artist rating year size genre field[6].charAt(0),field[6].charAt(0),// mm field[7].charAt(0),field[7].charAt(0),// ss field[8]);// ownIt if(debug) System.out.printf(headerFormatStr, field[0],field[1],field[3],field[2],field[5],field[4], field[6].charAt(0),field[6].charAt(0), field[7].charAt(0),field[7].charAt(0), field[8]); //-------------------------------- HANDLE DATA RECORDS for DETAIL LINES Song aSong =newSong();// only need ONE object, which is reUs ed // [Don't put it inside loop] // >>>>>>>>> TO DO - incremental development: // 1) make program work for JUST ONE RECORD (1 song). W hen that works... // 2) add a loop structure here to process the whole file
  • 50. String record = inFile.nextLine(); aSong.setOneSongsValues(record); outFile.println(aSong); if(debug) System.out.println(aSong);// assumes toString method //--------------------------------------------------------- CLOSE FILES inFile.close(); outFile.close(); System.out.println("nDONE - see TheReport.txt file in project folder"); } } MyTunes/src/mytunes/Song.javaMyTunes/src/mytunes/Song.jav a/* CLASS: Song USED BY MyTunes PROJECT * AUTHOR: DESIGNER: Dr. Kaminski * DESCRIPTION: This class does all handling of a SINGLE S ong. * It does NOT know that the whole project involves MANY Song objects. * There is only a SINGLE object declared, which is RE- USED for every Song * since the Stream Processing Algorithm suffices. * SETTING: The setOneSongsValues does basic "dirty data" cl eanup. * The individual setters do the: * - data type conversions (from Strings to ...), if needed * - editing for validity- checking (legal & reasonableness checking) * - changing bad data into devault values. * GETTING: The toString method does the overall "getting" of a Song's data. * It uses some instance variables directly. But where a "tra
  • 51. nsformation" * is needed, toString will call the appropriate getter. **************************************************** *************************/ package mytunes; publicclassSong{ //-------------------------------------------------------- STATIC CONSTANTS privatefinalstaticint OLDEST_YEAR =1950; privatestaticint THIS_YEAR; publicstaticvoid setThisYear(int systemYear){ THIS_YEAR = systemYear; } //------------------------------------------------------ INSTANCE VARIABLES privateString title; privateString artist; privateint year; privateint rating; privatechar genre; privatedouble size; privateint minutes; privateint seconds; privateboolean ownIt; //--------------------------------------------------- SPECIAL SETTER METHOD // This method acts as the miniMain of the class for doing the "s etting" of // the instance variables. It: // 1st) does overall cleanup & splitting of the record // 2nd) calls all the individual variable setters to clean up an d edit // their respective fields. publicvoid setOneSongsValues(String oneRecord){ // - remove all the " from the whole record
  • 52. oneRecord = oneRecord.replace(""",""); // - split the record into fields String field[]=newString[9]; field = oneRecord.split(","); // - go through fields and trim the leading white space for(int i =1; i < field.length; i++)// field[0] not need it field[i]= field[i].trim(); // - call the 9 individual setter methods, supplying correct paramete rs // setTitle( ); // setArtist( ); // setYear( ); // setRating( ); // setGenre( ); // setSize( ); // setMinutes( ); // setSeconds( ); // setOwnIt( ); } //----------------------------------------------- INDIVIDUAL SETTER METHODS // NOTE: These are PRIVATE since application program calls t he // setOneSongsValues method, which in turn calls these sette r methods. // DataType conversions, editing & default value substitutions a re needed // on SOME FIELDS. Assume it's just a simple assignment, e.g., // this.title = title; if NO CONSTRAINTS are specified be low. // YEAR - String input is 4 digits, 2011, but only store right 2 digits: 11 // - it must be between oldest year & this year (inclusive), // IF NOT, change it to this year
  • 53. // RATING - must be a valid integer between 0 & 5 (inclusive), // IF NOT, change it to 0 // GENRE - valid genre's: R, F, C, N, W, M, A, E, // IF NOT, change it to default O (char O, for Other, not z ero, 0) // [NOTE: a switch statement for this] // SIZE (in MB) - reasonable range: 0.2 to 50.0 (200 KB to 50 MB) inclusive, // IF NOT, change it to a 0.2 // MINUTES - reasonable range: 0-20 (inclusive) // IF NOT, change it to 1 // SECONDS - valid range: 0-59 (inclusive) // IF NOT, change it to 0 //- - - - - - - - - - - - - - - - - - - privatevoid setTitle(String title){ this.title = title; } privatevoid setArtist(String artist){ } privatevoid setYear(String year){ } privatevoid setRating(String rating){ } privatevoid setGenre(String genre){ } privatevoid setSize(String size){ } privatevoid setMinutes(String minutes){ } privatevoid setSeconds(String seconds){
  • 54. } privatevoid setOwnIt(String ownIt){ } //---------------------------------------------------------- GETTER METHODS // NOTE: These are PRIVATE since application program calls t he toString // method here, which in turn uses these getter methods. // Some attributes (instance variables) don't need a getter becaus e no // work needs to be done to transform their values, when toSt ring uses // them. So only write getters where toString can't use the in stance // variable directly, as is. // YEAR stored as 2-digits, but toString wants a 4-digit year. // Getter adds either 20 or 19 in front of the 2- digit year. Assume: // - a 2-digit year <= THIS_YEAR - 2000 --- >>> use 20 on front // - otherwise --->>> use 19 on front // TIME stored as TWO fields, but toString wants a single Strin g. // Getter combines minutes & seconds with a : between - like 9:32 // GENRE stored as a single char, but toString wants a whole w ord. // Getter uses a switch on genre to determine the word (a Stri ng): // Rock, Folk, Classic, NewAge, World, Movie, Alt, Easy Lis, Other // RATING stored as an int, but toString wants that number of *' s instead. // Getter returns a String of size 5, with the appropriate num
  • 55. ber of // *'s on the left, space- padded on right (or "none " for 0) based on // the rating int. [Use a switch statment]. // OWNIT stored as a boolean (true/false), but toString wants a Yes or No. // Getter returns a String for this. //- - - - - - - - - - - - - - - - - - - privateint getYear(){ return0;// A TEMPORARY DUMMY VALUE TO MAKE CODE COMPILE } privateString getTime(){ return"DUMMY";// A TEMPORARY DUMMY VALUE TO MA KE CODE COMPILE } privateString getGenre(){ return"DUMMY";// A TEMPORARY DUMMY VALUE TO MA KE CODE COMPILE } privateString getRatingStars(){ return"DUMMY";// A TEMPORARY DUMMY VALUE TO MA KE CODE COMPILE } privateString getOwnIt(){ return"DUMMY";// A TEMPORARY DUMMY VALUE TO MA
  • 56. KE CODE COMPILE } //------------------------------------------------------ CONSTRUCTOR METHOD // Default constructor used. //--------------------------------------------------------- toString METHOD // uses String.format to build a SINGLE String containing one s ong's data // For example, input record 1's data would produce this string: // Such Great Heights Iron & Wine ***** 2004 3.9 Rock 4 :13 Yes // FYI: headerFormatStr was the following, if this helps with co l widths: // headerFormatStr = "%-21s %-11s%-6s %-4s %4s %- 7s %c%c:%c%c %srnrn"; // NOTES: // - Use example above to count number of columns to specify for e ach field. // - LEFT-justify all fields, except size which must be RIGHT- justified. // - Year shows as 4 digits (forced to 4 by the getter, not this metho d). // - Size shows only 1 digit after the decimal point. // - getTime, getRating, getGenre, getOwnIt GETTERS determine t he correct // results to use here - don't construct those here in toString method. publicString toString(){ String theSong ="";
  • 57. return theSong; } //--------------------------------------------------------- PRIVATE METHODS // Use private methods here if a setter/getter/constructor method needs // modularizing. } MyTunes/TheReport.txt Sun Mar 26 12:06:00 EDT 2017 title artist rating year size genre mm:ss ownIt