Skip to content

Commit 4d9d80d

Browse files
committed
First Basic Implementation of Example Loader
This basic implementation supports different files per example for different versions of our software. It is therefore future-safe as we can adapt examples to changing parameters and configuration structures.
1 parent c773dc3 commit 4d9d80d

13 files changed

+1070
-39
lines changed

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
*.class
2+
3+
# Mobile Tools for Java (J2ME)
4+
.mtj.tmp/
5+
6+
# Package Files #
7+
*.jar
8+
*.war
9+
*.ear
10+
11+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
12+
hs_err_pid*
13+
/target/
14+
15+
# other files, potentially created by build tools
16+
/.settings
17+
/.classpath
18+
/bin
19+
/classes
20+
/build
21+
/temp
22+
/tmp
23+
/out
24+
/.gradle
25+
/dependency-reduced-pom.xml

.project

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>documentation-examples-loader</name>
4+
<comment>The shared code for downloading example datasets of the optimization benchmarking framework.</comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>

LICENSE renamed to LICENSE.md

+39-39
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
GNU GENERAL PUBLIC LICENSE
2-
Version 3, 29 June 2007
1+
# GNU GENERAL PUBLIC LICENSE
2+
## Version 3, 29 June 2007
33

44
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
55
Everyone is permitted to copy and distribute verbatim copies
66
of this license document, but changing it is not allowed.
77

8-
Preamble
8+
## Preamble
99

1010
The GNU General Public License is a free, copyleft license for
1111
software and other kinds of works.
@@ -68,9 +68,9 @@ patents cannot be used to render the program non-free.
6868
The precise terms and conditions for copying, distribution and
6969
modification follow.
7070

71-
TERMS AND CONDITIONS
71+
## TERMS AND CONDITIONS
7272

73-
0. Definitions.
73+
### 0. Definitions.
7474

7575
"This License" refers to version 3 of the GNU General Public License.
7676

@@ -109,7 +109,7 @@ work under this License, and how to view a copy of this License. If
109109
the interface presents a list of user commands or options, such as a
110110
menu, a prominent item in the list meets this criterion.
111111

112-
1. Source Code.
112+
### 1. Source Code.
113113

114114
The "source code" for a work means the preferred form of the work
115115
for making modifications to it. "Object code" means any non-source
@@ -151,7 +151,7 @@ Source.
151151
The Corresponding Source for a work in source code form is that
152152
same work.
153153

154-
2. Basic Permissions.
154+
### 2. Basic Permissions.
155155

156156
All rights granted under this License are granted for the term of
157157
copyright on the Program, and are irrevocable provided the stated
@@ -176,7 +176,7 @@ your copyrighted material outside their relationship with you.
176176
the conditions stated below. Sublicensing is not allowed; section 10
177177
makes it unnecessary.
178178

179-
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
179+
### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180180

181181
No covered work shall be deemed part of an effective technological
182182
measure under any applicable law fulfilling obligations under article
@@ -192,7 +192,7 @@ modification of the work as a means of enforcing, against the work's
192192
users, your or third parties' legal rights to forbid circumvention of
193193
technological measures.
194194

195-
4. Conveying Verbatim Copies.
195+
### 4. Conveying Verbatim Copies.
196196

197197
You may convey verbatim copies of the Program's source code as you
198198
receive it, in any medium, provided that you conspicuously and
@@ -205,29 +205,29 @@ recipients a copy of this License along with the Program.
205205
You may charge any price or no price for each copy that you convey,
206206
and you may offer support or warranty protection for a fee.
207207

208-
5. Conveying Modified Source Versions.
208+
### 5. Conveying Modified Source Versions.
209209

210210
You may convey a work based on the Program, or the modifications to
211211
produce it from the Program, in the form of source code under the
212212
terms of section 4, provided that you also meet all of these conditions:
213213

214-
a) The work must carry prominent notices stating that you modified
214+
#### a) The work must carry prominent notices stating that you modified
215215
it, and giving a relevant date.
216216

217-
b) The work must carry prominent notices stating that it is
217+
#### b) The work must carry prominent notices stating that it is
218218
released under this License and any conditions added under section
219219
7. This requirement modifies the requirement in section 4 to
220220
"keep intact all notices".
221221

222-
c) You must license the entire work, as a whole, under this
222+
#### c) You must license the entire work, as a whole, under this
223223
License to anyone who comes into possession of a copy. This
224224
License will therefore apply, along with any applicable section 7
225225
additional terms, to the whole of the work, and all its parts,
226226
regardless of how they are packaged. This License gives no
227227
permission to license the work in any other way, but it does not
228228
invalidate such permission if you have separately received it.
229229

230-
d) If the work has interactive user interfaces, each must display
230+
#### d) If the work has interactive user interfaces, each must display
231231
Appropriate Legal Notices; however, if the Program has interactive
232232
interfaces that do not display Appropriate Legal Notices, your
233233
work need not make them do so.
@@ -242,19 +242,19 @@ beyond what the individual works permit. Inclusion of a covered work
242242
in an aggregate does not cause this License to apply to the other
243243
parts of the aggregate.
244244

245-
6. Conveying Non-Source Forms.
245+
### 6. Conveying Non-Source Forms.
246246

247247
You may convey a covered work in object code form under the terms
248248
of sections 4 and 5, provided that you also convey the
249249
machine-readable Corresponding Source under the terms of this License,
250250
in one of these ways:
251251

252-
a) Convey the object code in, or embodied in, a physical product
252+
#### a) Convey the object code in, or embodied in, a physical product
253253
(including a physical distribution medium), accompanied by the
254254
Corresponding Source fixed on a durable physical medium
255255
customarily used for software interchange.
256256

257-
b) Convey the object code in, or embodied in, a physical product
257+
#### b) Convey the object code in, or embodied in, a physical product
258258
(including a physical distribution medium), accompanied by a
259259
written offer, valid for at least three years and valid for as
260260
long as you offer spare parts or customer support for that product
@@ -266,13 +266,13 @@ in one of these ways:
266266
conveying of source, or (2) access to copy the
267267
Corresponding Source from a network server at no charge.
268268

269-
c) Convey individual copies of the object code with a copy of the
269+
#### c) Convey individual copies of the object code with a copy of the
270270
written offer to provide the Corresponding Source. This
271271
alternative is allowed only occasionally and noncommercially, and
272272
only if you received the object code with such an offer, in accord
273273
with subsection 6b.
274274

275-
d) Convey the object code by offering access from a designated
275+
#### d) Convey the object code by offering access from a designated
276276
place (gratis or for a charge), and offer equivalent access to the
277277
Corresponding Source in the same way through the same place at no
278278
further charge. You need not require recipients to copy the
@@ -285,7 +285,7 @@ in one of these ways:
285285
Corresponding Source, you remain obligated to ensure that it is
286286
available for as long as needed to satisfy these requirements.
287287

288-
e) Convey the object code using peer-to-peer transmission, provided
288+
#### e) Convey the object code using peer-to-peer transmission, provided
289289
you inform other peers where the object code and Corresponding
290290
Source of the work are being offered to the general public at no
291291
charge under subsection 6d.
@@ -340,7 +340,7 @@ documented (and with an implementation available to the public in
340340
source code form), and must require no special password or key for
341341
unpacking, reading or copying.
342342

343-
7. Additional Terms.
343+
### 7. Additional Terms.
344344

345345
"Additional permissions" are terms that supplement the terms of this
346346
License by making exceptions from one or more of its conditions.
@@ -362,24 +362,24 @@ for which you have or can give appropriate copyright permission.
362362
add to a covered work, you may (if authorized by the copyright holders of
363363
that material) supplement the terms of this License with terms:
364364

365-
a) Disclaiming warranty or limiting liability differently from the
365+
#### a) Disclaiming warranty or limiting liability differently from the
366366
terms of sections 15 and 16 of this License; or
367367

368-
b) Requiring preservation of specified reasonable legal notices or
368+
#### b) Requiring preservation of specified reasonable legal notices or
369369
author attributions in that material or in the Appropriate Legal
370370
Notices displayed by works containing it; or
371371

372-
c) Prohibiting misrepresentation of the origin of that material, or
372+
#### c) Prohibiting misrepresentation of the origin of that material, or
373373
requiring that modified versions of such material be marked in
374374
reasonable ways as different from the original version; or
375375

376-
d) Limiting the use for publicity purposes of names of licensors or
376+
#### d) Limiting the use for publicity purposes of names of licensors or
377377
authors of the material; or
378378

379-
e) Declining to grant rights under trademark law for use of some
379+
#### e) Declining to grant rights under trademark law for use of some
380380
trade names, trademarks, or service marks; or
381381

382-
f) Requiring indemnification of licensors and authors of that
382+
#### f) Requiring indemnification of licensors and authors of that
383383
material by anyone who conveys the material (or modified versions of
384384
it) with contractual assumptions of liability to the recipient, for
385385
any liability that these contractual assumptions directly impose on
@@ -404,7 +404,7 @@ where to find the applicable terms.
404404
form of a separately written license, or stated as exceptions;
405405
the above requirements apply either way.
406406

407-
8. Termination.
407+
### 8. Termination.
408408

409409
You may not propagate or modify a covered work except as expressly
410410
provided under this License. Any attempt otherwise to propagate or
@@ -432,7 +432,7 @@ this License. If your rights have been terminated and not permanently
432432
reinstated, you do not qualify to receive new licenses for the same
433433
material under section 10.
434434

435-
9. Acceptance Not Required for Having Copies.
435+
### 9. Acceptance Not Required for Having Copies.
436436

437437
You are not required to accept this License in order to receive or
438438
run a copy of the Program. Ancillary propagation of a covered work
@@ -443,7 +443,7 @@ modify any covered work. These actions infringe copyright if you do
443443
not accept this License. Therefore, by modifying or propagating a
444444
covered work, you indicate your acceptance of this License to do so.
445445

446-
10. Automatic Licensing of Downstream Recipients.
446+
### 10. Automatic Licensing of Downstream Recipients.
447447

448448
Each time you convey a covered work, the recipient automatically
449449
receives a license from the original licensors, to run, modify and
@@ -468,7 +468,7 @@ rights granted under this License, and you may not initiate litigation
468468
any patent claim is infringed by making, using, selling, offering for
469469
sale, or importing the Program or any portion of it.
470470

471-
11. Patents.
471+
### 11. Patents.
472472

473473
A "contributor" is a copyright holder who authorizes use under this
474474
License of the Program or a work on which the Program is based. The
@@ -537,7 +537,7 @@ or that patent license was granted, prior to 28 March 2007.
537537
any implied license or other defenses to infringement that may
538538
otherwise be available to you under applicable patent law.
539539

540-
12. No Surrender of Others' Freedom.
540+
### 12. No Surrender of Others' Freedom.
541541

542542
If conditions are imposed on you (whether by court order, agreement or
543543
otherwise) that contradict the conditions of this License, they do not
@@ -549,7 +549,7 @@ to collect a royalty for further conveying from those to whom you convey
549549
the Program, the only way you could satisfy both those terms and this
550550
License would be to refrain entirely from conveying the Program.
551551

552-
13. Use with the GNU Affero General Public License.
552+
### 13. Use with the GNU Affero General Public License.
553553

554554
Notwithstanding any other provision of this License, you have
555555
permission to link or combine any covered work with a work licensed
@@ -560,7 +560,7 @@ but the special requirements of the GNU Affero General Public License,
560560
section 13, concerning interaction through a network will apply to the
561561
combination as such.
562562

563-
14. Revised Versions of this License.
563+
### 14. Revised Versions of this License.
564564

565565
The Free Software Foundation may publish revised and/or new versions of
566566
the GNU General Public License from time to time. Such new versions will
@@ -586,7 +586,7 @@ permissions. However, no additional obligations are imposed on any
586586
author or copyright holder as a result of your choosing to follow a
587587
later version.
588588

589-
15. Disclaimer of Warranty.
589+
### 15. Disclaimer of Warranty.
590590

591591
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592592
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
@@ -597,7 +597,7 @@ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597597
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598598
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599599

600-
16. Limitation of Liability.
600+
### 16. Limitation of Liability.
601601

602602
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603603
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
@@ -609,7 +609,7 @@ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609609
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610610
SUCH DAMAGES.
611611

612-
17. Interpretation of Sections 15 and 16.
612+
### 17. Interpretation of Sections 15 and 16.
613613

614614
If the disclaimer of warranty and limitation of liability provided
615615
above cannot be given local legal effect according to their terms,
@@ -618,9 +618,9 @@ an absolute waiver of all civil liability in connection with the
618618
Program, unless a warranty or assumption of liability accompanies a
619619
copy of the Program in return for a fee.
620620

621-
END OF TERMS AND CONDITIONS
621+
## END OF TERMS AND CONDITIONS
622622

623-
How to Apply These Terms to Your New Programs
623+
### How to Apply These Terms to Your New Programs
624624

625625
If you develop a new program, and you want it to be of the greatest
626626
possible use to the public, the best way to achieve this is to make it

build.xml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<project basedir="." default="build">
2+
<description>
3+
Build the documentation-examples-loader project, i.e., the project
4+
of the optimizationBenchmarking tool chain responsible
5+
for downloading examples, includings its dependencies of
6+
group "org.optimizationBenchmarking".
7+
</description>
8+
9+
<import>
10+
<url url="https://raw.githubusercontent.com/optimizationBenchmarking/utils-build/master/dependencyBuilder.xml" />
11+
</import>
12+
13+
<target name="build">
14+
<sequential>
15+
<buildWithDependencies githubProject="documentation-examples-loader">
16+
<dependencies>
17+
<dependency githubProject="utils-base" />
18+
</dependencies>
19+
</buildWithDependencies>
20+
</sequential>
21+
</target>
22+
</project>

0 commit comments

Comments
 (0)