O‘zbekiston respublikasi axborot texnologiyalari va kommunikatsiyalarini rivojlantirish vazirligi muxammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti fan: Tarmoqni dasturlash asoslari mustaqil ish mavzu: Apache avy guruh: 413-19


Download 281.23 Kb.
bet4/4
Sana04.02.2023
Hajmi281.23 Kb.
#1162905
1   2   3   4
Default repositories - schema

Configuring local repository
Directory:
ivy.local.default.root =
"${ivy.default.ivy.user.dir}/local"
Descriptor pattern:
ivy.local.default.ivy.pattern =
"[organisation]/[module]/[revision]/[type]s/[artifact].
[ext]"
Artifact pattern:
ivy.local.default.artifact.pattern =
"[organisation]/[module]/[revision]/[type]s/[artifact].
[ext]"
Configuring shared repository
Directory:
ivy.shared.default.root =
"${ivy.default.ivy.user.dir}/shared"
Descriptor pattern:
ivy.shared.default.ivy.pattern = "[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"
Artifact pattern:
ivy.shared.default.artifact.pattern =
"[organisation]/[module]/[revision]/[type]s/[artifact].
[ext]"
Basic Ant build le with Ivy

Apache AVY haqida misol ko`ramiz:
Avval dependencyni qoshamiz:










======================================================================== Running this Web Application with an embedded Jetty server. Press Ctrl+C to stop the server. Access AntTmplt at: http://localhost:8080========================================================================

Bironta test klass ochib example yozib ko`ramiz yaxshiroq tushunish uchun:


1.example:
@Testpublic void testOverrideTrue() { configure.setFile(new File("test/repositories/ivysettings.xml")); configure.execute(); Ivy ivy = getIvyInstance(); assertNotNull(ivy); configure = new IvyConfigure(); configure.setProject(project); configure.setOverride("true"); configure.setFile(new File("test/repositories/ivysettings.xml")); configure.execute(); assertNotNull(getIvyInstance()); assertNotSame(ivy, getIvyInstance());}
2.example:
private ModuleRevisionId(ModuleId moduleId, String branch, String revision, Map extraAttributes, boolean replaceNullBranchWithDefault) { super(null, extraAttributes); this.moduleId = moduleId; IvyContext context = IvyContext.getContext(); this.branch = (replaceNullBranchWithDefault && branch == null) // we test if there's already an Ivy instance loaded, to avoid loading a default one // just to get the default branch ? (context.peekIvy() == null ? null : context.getSettings().getDefaultBranch(moduleId)) : branch; this.revision = revision == null ? Ivy.getWorkingRevision() : normalizeRevision(revision); setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, this.moduleId.getOrganisation()); setStandardAttribute(IvyPatternHelper.MODULE_KEY, this.moduleId.getName()); setStandardAttribute(IvyPatternHelper.BRANCH_KEY, this.branch); setStandardAttribute(IvyPatternHelper.REVISION_KEY, this.revision);}
3.Example
@Testpublic void testSimple() throws Exception { ModuleDescriptor md = XmlModuleDescriptorParser.getInstance().parseDescriptor(settings, getClass().getResource("test-simple.xml"), true); assertNotNull(md); assertEquals("myorg", md.getModuleRevisionId().getOrganisation()); assertEquals("mymodule", md.getModuleRevisionId().getName()); assertEquals(Ivy.getWorkingRevision(), md.getModuleRevisionId().getRevision()); assertEquals("integration", md.getStatus()); assertNotNull(md.getConfigurations()); assertEquals(Collections.singletonList(new Configuration("default")), Arrays.asList(md.getConfigurations())); assertNotNull(md.getArtifacts("default")); assertEquals(1, md.getArtifacts("default").length); assertEquals("mymodule", md.getArtifacts("default")[0].getName()); assertEquals("jar", md.getArtifacts("default")[0].getType()); assertNotNull(md.getDependencies()); assertEquals(0, md.getDependencies().length);}
Xulosa
Men bu Mustaqil ishni bajarish davomida Apache AVY haqidagi bilimlarimni mustahkamlar bu fanga bo’lgan qiziqishim yanada ortdi. Apache AVY da Microsoft Word dasturini ko’rib chiqdim .doc kengaytmali faylni boshqarish uchun ishlatilashini .docx fayl formatiga ega va org.apache.poi.xwpf.usermodel paketida joylashgan MS-Word hujjatini yaratish uchun ishlatilishini Word hujjatiga jadval qo'shish uchun ishlatilishini va org.apache.poi.xwpf.usermodel paketida joylashganligini bilib o’rganib oldim. Apache AVY da Microsoft Excel dasturini ko’rib chiqdim. Hujayra chegarasini o'rnatish uchun Apache AVY chegara rangi, ingichka, chiziqli va boshqalarni o'rnatish uchun ishlatilishi mumkin bo'lgan usullarni taqdim etaishini, Ba'zan biz asosiy uslublar bilan elektron jadval yaratmoqchimiz bo’lamiz va keyin ma'lum hujayralarga maxsus uslublarni qo'llashni xohlaymiz, masalan, bir qator hujayralar atrofida chegaralarni chizish yoki mintaqa uchun to'ldirishni o'rnatish. Apache AVY CellUtil.setCellProperties bilan ta'minlaydi, bu bizga elektron jadvalimizda keraksiz oraliq uslublar to'plami yaratmasdan buni amalga oshirishga imkon berishini o’rganib oldim. Apache AVY da PowerPoint dasturini ko’rib chiqdim. Bunda anchagina sinflar bilan tanishib chiqdim: fayl bilan ishlashini va fayllarni o'qish va yozish imkonini beradishini, yozuvlardan model yozuvlarini tuzishini va foydalanuvchiga faylning ko'rinishini taqdim etishini o’rgandim va bilimimni mustahkamlab oldim.


Foydalanilgan Adabiyotlar

1. https://www.geeksforgeeks.org/opening-existing-excel-sheet-in-java-using-apache-poi/?ref=lbp


2. https://poi.apache.org/
3. Ziyonet.uz
Download 281.23 Kb.

Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling