buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static BuildException addLocationToBuildException( BuildException ex, Location newLocation) { if (ex.getLocation() == null || ex.getMessage() == null) { return ex; } String errorMessage = "Following error occured while executing this line" +...
public static BuildException addLocationToBuildException( BuildException ex, Location newLocation) { if (ex.getLocation() == null || ex.getMessage() == null) { return ex; } String errorMessage = "The following error occurred while executing this line:" ...
private void translate() throws BuildException { int filesProcessed = 0; for (int i = 0; i < filesets.size(); i++) { FileSet fs = (FileSet) filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(getProject()); String[] srcFiles = ds.getIncludedFiles()...
private void translate() throws BuildException { int filesProcessed = 0; for (int i = 0; i < filesets.size(); i++) { FileSet fs = (FileSet) filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(getProject()); String[] srcFiles = ds.getIncludedFiles()...
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { response = res; request = req; initRequest(); executeRequest(); } catch (BuildException e) { util.log("Error occured: " ...
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { response = res; request = req; initRequest(); executeRequest(); } catch (BuildException e) { util.log("Error occurred: "...
public void scanProject(Project project) { try { Package[] packages = project.getPackages(); if (packages != null) { for (int i = 0; i < packages.length; i++) { Package item = packages[i]; // replace '.' by file seperator becaus...
public void scanProject(Project project) { try { Package[] packages = project.getPackages(); if (packages != null) { for (int i = 0; i < packages.length; i++) { Package item = packages[i]; // replace '.' by file seperator becaus...
private void readPatterns(File patternfile, Vector patternlist, Project p) throws BuildException { BufferedReader patternReader = null; try { // Get a FileReader patternReader = new BufferedReader(new FileReader(patternfile)); // Create o...
private void readPatterns(File patternfile, Vector patternlist, Project p) throws BuildException { BufferedReader patternReader = null; try { // Get a FileReader patternReader = new BufferedReader(new FileReader(patternfile)); // Create o...
public void testOutxml () { IMessageHolder messageHolder = new MessageHandler(); AjBuildConfig config = genBuildConfig(new String[] { "-outxml", "-showWeaveInfo" }, messageHolder); assertTrue("Warnings: " + messageHolder,!messageHolder.hasAnyMessage(IMessage.WARNING, true)); assertEquals("Wrong outxml","...
public void testOutxml () { IMessageHolder messageHolder = new MessageHandler(); AjBuildConfig config = genBuildConfig(new String[] { "-outxml", "-showWeaveInfo" }, messageHolder); assertTrue("Warnings: " + messageHolder,!messageHolder.hasAnyMessage(IMessage.WARNING, true)); assertEquals("Wrong outxml","...
private void checkXMLAspectCount(String projectName, String aspectName, int expectedOccurrences) { int aspectCount = 0; File aopXML = new File(getWorkingDir().getAbsolutePath() + File.separatorChar + projectName + File.separatorChar + "bin" + File.separatorChar + "META-INF" + File.separatorChar + "aop.xm...
private void checkXMLAspectCount(String projectName, String aspectName, int expectedOccurrences) { int aspectCount = 0; File aopXML = new File(getWorkingDir().getAbsolutePath() + File.separatorChar + projectName + File.separatorChar + "bin" + File.separatorChar + "META-INF" + File.separatorChar + "aop-aj...
protected void onComponentTag(ComponentTag tag) { // must be attached to <input type="checkbox" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); CheckGroup<?> group = this.group; if (group == null) { group = findParent(CheckGroup.class); if (group == n...
protected void onComponentTag(ComponentTag tag) { // must be attached to <input type="checkbox" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); CheckGroup<?> group = this.group; if (group == null) { group = findParent(CheckGroup.class); if (group == n...
private void setProjectOnObject(Object obj) { if (project == null) return; if (obj instanceof BaseFilterReader) { ((BaseFilterReader) obj).setProject(project); return; } Project.setProjectOnObject(project, obj); }
private void setProjectOnObject(Object obj) { if (project == null) return; if (obj instanceof BaseFilterReader) { ((BaseFilterReader) obj).setProject(project); return; } project.setProjectReference( obj ); }
public Browser (Composite parent, int style) { super (checkParent (parent), checkStyle (style)); String platform = SWT.getPlatform (); Display display = parent.getDisplay (); if ("gtk".equals (platform)) display.setData (NO_INPUT_METHOD, null); //$NON-NLS-1$ String className = null; if ((style & SWT.MOZILLA) != 0...
public Browser (Composite parent, int style) { super (checkParent (parent), checkStyle (style)); String platform = SWT.getPlatform (); Display display = parent.getDisplay (); if ("gtk".equals (platform)) display.setData (NO_INPUT_METHOD, null); //$NON-NLS-1$ String className = null; if ((style & SWT.MOZILLA) != 0...
public CharSequence encodeURL(CharSequence url) { return currentResponse.encodeURL(url); } }; redirectResponse.setCharacterEncoding(currentResponse.getCharacterEncoding()); // redirect the response to the buffer setResponse(redirectResponse); // render the page into the buffer...
public CharSequence encodeURL(CharSequence url) { return currentResponse.encodeURL(url); } }; redirectResponse.setCharacterEncoding(currentResponse.getCharacterEncoding()); // redirect the response to the buffer setResponse(redirectResponse); // render the page into the buffer...
public void execTest(boolean stateless) throws Exception { tester.getApplication().mount( new IndexedParamUrlCodingStrategy("/test", TestPageWithIFrame.class)); TestPageWithIFrame test = new TestPageWithIFrame(new PageParameters("0=foo,1=bar")); test.setStatelessHint(stateless); tester.startPage(test); t...
public void execTest(boolean stateless) throws Exception { tester.getApplication().mount( new IndexedParamUrlCodingStrategy("/test", TestPageWithIFrame.class)); TestPageWithIFrame test = new TestPageWithIFrame(new PageParameters("0=foo,1=bar")); test.setStatelessHint(stateless); tester.startPage(test); t...
public void deployRole( final Deployment deployment, final RoleDefinition roleDef ) throws Exception { final String name = roleDef.getShortHand(); final String role = roleDef.getRoleName(); final Class type = deployment.getClassLoader().loadClass( role...
public void deployRole( final Deployment deployment, final RoleDefinition roleDef ) throws Exception { final String name = roleDef.getShortHand(); final String role = roleDef.getRoleName(); final Class type = deployment.getClassLoader().loadClass( role...
import org.apache.myrmidon.api.Context; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.my...
import org.apache.myrmidon.api.Context; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.my...
public void execute() throws TaskException { try { addBeans( getContext().getPropertys() ); //In Ant2 there is no difference between properties and references //addBeans( getProject().getReferences() ); beans.put( "context", getContext() )...
public void execute() throws TaskException { try { addBeans( getContext().getProperties() ); //In Ant2 there is no difference between properties and references //addBeans( getProject().getReferences() ); beans.put( "context", getContext() ...
public void respond(RequestCycle requestCycle) { Url currentUrl = requestCycle.getRequest().getUrl(); Url targetUrl = requestCycle.mapUrlFor(getRenderPageRequestHandler()); // // the code below is little hairy but we have to handle 3 redirect policies // and 3 rendering strategies // // try to get an ...
public void respond(RequestCycle requestCycle) { Url currentUrl = requestCycle.getUrlRenderer().getBaseUrl(); Url targetUrl = requestCycle.mapUrlFor(getRenderPageRequestHandler()); // // the code below is little hairy but we have to handle 3 redirect policies // and 3 rendering strategies // // try to...
public final ManagedType<X> getDeclaringType() { return owner.model.type(fmd.getDeclaringType()); }
public final ManagedType<X> getDeclaringType() { return owner.model.managedType(fmd.getDeclaringType()); }
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("CARBON|1|"); if (atsName != null) buffer.append(atsName); retu...
public String toString() { StringBuffer buffer = new StringBuffer(128); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("CARBON|1|"); if (atsName != null) buffer.append(atsName); r...
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("COCOA|1|"); if (nsName != null) buffer.append(nsName); return ...
public String toString() { StringBuffer buffer = new StringBuffer(128); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("COCOA|1|"); if (nsName != null) buffer.append(nsName); retu...
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("GTK|1|"); return buffer.toString(); }
public String toString() { StringBuffer buffer = new StringBuffer(128); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("GTK|1|"); return buffer.toString(); }
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); forceResize (); int /*long*/ clientHandle = clientHandle (); int clientX = OS.GTK_WIDGET_X (clientHandle); int clientY = OS.GTK_WIDGET_Y (clientHandle); x -= clientX; y -= clientY; width += clientX + clientX; if ((style & SWT....
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); forceResize (); int /*long*/ clientHandle = clientHandle (); int clientX = OS.GTK_WIDGET_X (clientHandle); int clientY = OS.GTK_WIDGET_Y (clientHandle); x -= clientX; y -= clientY; width += clientX + clientX; if ((style & SWT....
public void testReferenceAbuse() { expectBuildExceptionContaining("test-reference-abuse", "reference abuse rejected", "You must not specify nested elements when using refid"); }
public void testReferenceAbuse() { expectBuildExceptionContaining("test-reference-abuse", "reference abuse rejected", "You must not specify"); }
private final static Method findGetter(Class clz, String expression) { String name = Character.toUpperCase(expression.charAt(0)) + expression.substring(1); Method method = null; try { method = clz.getMethod("get" + name, null); } catch (Exception e) { } if (method == null) { try { met...
private final static Method findGetter(Class clz, String expression) { String name = Character.toUpperCase(expression.charAt(0)) + expression.substring(1); Method method = null; try { method = clz.getMethod("get" + name, null); } catch (Exception e) { } if (method == null) { try { met...
public static AjState findStateManagingOutputLocation(File location) { Collection allStates = incrementalStates.values(); if (debugIncrementalStates) System.err.println("> findStateManagingOutputLocation("+location+") has "+allStates.size()+" states to look through"); for (Iterator iter = allStates.iterator(); i...
public static AjState findStateManagingOutputLocation(File location) { Collection allStates = incrementalStates.values(); if (debugIncrementalStates) System.err.println("> findStateManagingOutputLocation("+location+") has "+allStates.size()+" states to look through"); for (Iterator iter = allStates.iterator(); i...
public void setRefid(Reference r) throws BuildException { if (dir != null || defaultPatterns.countPatterns() > 0) { throw tooManyAttributes(); } if (!additionalPatterns.isEmpty()) { throw noChildrenAllowed(); } super.setRefid(r); }
public void setRefid(Reference r) throws BuildException { if (dir != null || defaultPatterns.hasPatterns()) { throw tooManyAttributes(); } if (!additionalPatterns.isEmpty()) { throw noChildrenAllowed(); } super.setRefid(r); }
public void testRenderHomePage() throws Exception { tester.startComponent(MyFormComponentPanel.class, null); String doc = tester.getLastResponseAsString(); // log.error(doc); assertEquals(doc, "<wicket:panel>test</wicket:panel>"); }
public void testRenderHomePage() throws Exception { tester.startComponentInPage(MyFormComponentPanel.class); String doc = tester.getLastResponseAsString(); // log.error(doc); assertEquals(doc, "<wicket:panel>test</wicket:panel>"); }
public AbortWithHttpStatusException(int status, boolean statusCodeOptional) { this.status = status; RequestCycle rc = RequestCycle.get(); if (rc == null) { if (!statusCodeOptional) { throw new IllegalStateException( "This exception can only be thrown from within request processing cycle"); ...
public AbortWithHttpStatusException(int status, boolean statusCodeOptional) { this.status = status; RequestCycle rc = RequestCycle.get(); if (rc == null) { if (!statusCodeOptional) { throw new IllegalStateException( "This exception can only be thrown from within request processing cycle"); ...
public ApacheLicenceHeaderTest() { // addHeaders = true; htmlIgnore = new String[] { /* * .html in test is very test specific and a license header * would confuse and make it unclear what the test is about. */ "src/test/java", /* * See NOTICE.txt */ "src/main/java/org/...
public ApacheLicenceHeaderTest() { // addHeaders = true; htmlIgnore = new String[] { /* * .html in test is very test specific and a license header * would confuse and make it unclear what the test is about. */ "src/test/java", /* * See NOTICE.txt */ "src/main/java/org/...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); Rectangle trim = super.computeTrim (x, y, width, height); int border = 0; if ((style & (SWT.NO_TRIM | SWT.BORDER | SWT.RESIZE)) == 0) { border = OS.gtk_container_get_border_width (shellHandle); } int trimWidth = trimWidth (), tr...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); Rectangle trim = super.computeTrim (x, y, width, height); int border = 0; if ((style & (SWT.NO_TRIM | SWT.BORDER | SWT.RESIZE)) == 0) { border = OS.gtk_container_get_border_width (shellHandle); } int trimWidth = trimWidth (), tr...
public void setTabList (Control [] tabList) { checkWidget (); if (tabList != null) { for (int i=0; i<tabList.length; i++) { Control control = tabList [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); if (control.parent != this) e...
public void setTabList (Control [] tabList) { checkWidget (); if (tabList != null) { for (int i=0; i<tabList.length; i++) { Control control = tabList [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); if (control.parent != this) e...
// public int compare (Object object1, Object object2) { // TableItem item1 = (TableItem) object1, item2 = (TableItem) object2; // if (sortDirection == SWT.UP || sortDirection == SWT.NONE) { // return item1.getText (index).compareTo (item2.getText (index)); // } else { // return item2.getText (index).compa...
// public int compare (Object object1, Object object2) { // TableItem item1 = (TableItem) object1, item2 = (TableItem) object2; // if (sortDirection == SWT.UP || sortDirection == SWT.NONE) { // return item1.getText (index).compareTo (item2.getText (index)); // } else { // return item2.getText (index).compa...
/*public*/ void sort () { checkWidget (); if ((style & SWT.VIRTUAL) != 0) return; sort (OS.TVI_ROOT, false); } void sort (int /*long*/ hParent, boolean all) { int itemCount = (int)/*64*/OS.SendMessage (handle, OS.TVM_GETCOUNT, 0, 0); if (itemCount == 0 || itemCount == 1) return; hFirstIndexOf = hLastIndexOf = 0;...
/*public*/ void sort () { checkWidget (); if ((style & SWT.VIRTUAL) != 0) return; sort (OS.TVI_ROOT, false); } void sort (int /*long*/ hParent, boolean all) { int itemCount = (int)/*64*/OS.SendMessage (handle, OS.TVM_GETCOUNT, 0, 0); if (itemCount == 0 || itemCount == 1) return; hFirstIndexOf = hLastIndexOf = 0;...
public synchronized void setBasedir(String basedir) throws IOException { if (filesOpen()) { throw new IOException("Files are still open, cannot change base directory"); } files.clear(); if (basedir != null) { base = new File(basedir); if (!base.isDirectory()) { base = base.getParentFile(); } ...
public synchronized void setBasedir(String basedir) throws IOException { if (filesOpen()) { throw new IOException("Files are still open, cannot change base directory"); } files.clear(); if (basedir != null) { base = new File(basedir); if (!base.isDirectory()) { base = base.getParentFile(); } ...
public void testDefault() { tester.startPage(A.class, new PageParameters().set("file", "umlaut-\u00E4-\u00F6-\u00FC")); tester.assertRenderedPage(B.class); String url2 = ((B)tester.getLastRenderedPage()).getInterceptContinuationURL(); assertTrue(url2.contains("umlaut-%C3%A4-%C3%B6-%C3%BC")); tester.clickL...
public void testDefault() { tester.startPage(A.class, new PageParameters().set("file", "umlaut-\u00E4-\u00F6-\u00FC")); tester.assertRenderedPage(B.class); String url2 = ((B)tester.getLastRenderedPage()).getInterceptContinuationURL(); assertTrue(url2.contains("umlaut-%C3%A4-%C3%B6-%C3%BC")); tester.clickL...
target(p) && call(void move(int, int)) && args(dx, dy) { /* ******************************************************************* * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Commo...
target(p) && call(void move(int, int)) && args(dx, dy) { /* ******************************************************************* * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Commo...
public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.appen...
public String toString() { /*** return fLocationPath.toString(); /***/ StringBuffer str = new StringBuffer(); String s = super.toString(); int index2 = s.lastIndexOf('.'); if (index2 != -1) { s = s.substring(index2 + 1); } str.appen...
public void testEnumFromHell() { BcelWorld world = new BcelWorld(); JavaClass javaLangEnum = Repository.lookupClass("java/lang/Enum"); Signature.ClassSignature cSig = javaLangEnum.getGenericClassTypeSignature(); UnresolvedType superclass = BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX( ...
public void testEnumFromHell() { BcelWorld world = new BcelWorld(); JavaClass javaLangEnum = Repository.lookupClass("java/lang/Enum"); Signature.ClassSignature cSig = javaLangEnum.getGenericClassTypeSignature(); UnresolvedType superclass = BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX( ...
public SampleResult sample(Entry e) { String responseData ="<ldapanswer>"; SampleResult res = new SampleResult(); res.setResponseData("successfull".getBytes()); res.setResponseMessage("Success"); res.setResponseCode("0"); boolean isSuccessful = true; Searc...
public SampleResult sample(Entry e) { String responseData ="<ldapanswer>"; SampleResult res = new SampleResult(); res.setResponseData("successfull".getBytes()); res.setResponseMessage("Success"); res.setResponseCode("0"); boolean isSuccessful = true; Searc...
public AjAttribute unpack(AsmDelegate relatedDelegate) { if (unpacked) throw new BCException("Don't unpack an attribute twice!"); AjAttribute attr = AjAttribute.read(relatedDelegate.weaverVersion,type,data,relatedDelegate.getSourceContext(),relatedDelegate.getWorld().getMessageHandler()); unpacked=true; r...
public AjAttribute unpack(AsmDelegate relatedDelegate) { if (unpacked) throw new BCException("Don't unpack an attribute twice!"); AjAttribute attr = AjAttribute.read(relatedDelegate.weaverVersion,type,data,relatedDelegate.getSourceContext(),relatedDelegate.getWorld()); unpacked=true; return attr; }
public void addNode(Object node, HashTree subTree) { Iterator<?> iter = subTree.list().iterator(); while (iter.hasNext()) { Object item = iter.next(); if (item instanceof AbstractThreadGroup) { log.info("num threads = " + ((AbstractThreadGroup) item).getNumThr...
public void addNode(Object node, HashTree subTree) { Iterator<?> iter = subTree.list().iterator(); while (iter.hasNext()) { Object item = iter.next(); if (item instanceof AbstractThreadGroup) { log.debug("num threads = " + ((AbstractThreadGroup) item).getNumTh...
public void checkGuiSet() throws Exception { guiTitles.remove("Example Sampler");// We don't mind if this is left over guiTitles.remove("Sample_Result_Configuration");// Ditto, not a sampler assertEquals("Should not have any names left over", 0, scanprintMap(guiTitles, "GUI")); }
public void checkGuiSet() throws Exception { guiTitles.remove("Example Sampler");// We don't mind if this is left over guiTitles.remove("Sample_Result_Save_Configuration");// Ditto, not a sampler assertEquals("Should not have any names left over", 0, scanprintMap(guiTitles, "GUI")); }
private boolean validateDocument(String document) { System.out.println(document); HtmlDocumentValidator validator = new HtmlDocumentValidator(); Tag html = new Tag("html"); Tag head = new Tag("head"); html.addExpectedChild(head); Tag title = new Tag("title"); head.addExpectedChild(title); title.add...
private boolean validateDocument(String document) { System.out.println(document); HtmlDocumentValidator validator = new HtmlDocumentValidator(); Tag html = new Tag("html"); Tag head = new Tag("head"); html.addExpectedChild(head); Tag title = new Tag("title"); head.addExpectedChild(title); title.add...
public String getRelativeURL() { /* * Servlet 2.3 specification : * * Servlet Path: The path section that directly corresponds to the * mapping which activated this request. This path starts with a "/" * character except in the case where the request is matched with the * "/*" pattern, in which c...
public String getRelativeURL() { /* * Servlet 2.3 specification : * * Servlet Path: The path section that directly corresponds to the * mapping which activated this request. This path starts with a "/" * character except in the case where the request is matched with the * "/*" pattern, in which c...
protected void onBeforeRender() { super.onBeforeRender(); Component buttonBar = get(BUTTONS_ID); if (buttonBar instanceof IDefaultButtonProvider) { IFormSubmittingComponent defaultButton = ((IDefaultButtonProvider)buttonBar) .getDefaultButton(wizardModel); form.setDefaultButton(defaultButton); } ...
protected void onBeforeRender() { super.onBeforeRender(); Component buttonBar = getForm().get(BUTTONS_ID); if (buttonBar instanceof IDefaultButtonProvider) { IFormSubmittingComponent defaultButton = ((IDefaultButtonProvider)buttonBar) .getDefaultButton(wizardModel); form.setDefaultButton(defaultBut...
public void textSelectionChanged () { checkWidget(); // not an MSAA event } /* QueryInterface([in] iid, [out] ppvObject) * Ownership of ppvObject transfers from callee to caller so reference count on ppvObject * must be incremented before returning. Caller is responsible for releasing ppvObject. */ in...
public void textSelectionChanged () { checkWidget(); // not an MSAA event } /* QueryInterface([in] iid, [out] ppvObject) * Ownership of ppvObject transfers from callee to caller so reference count on ppvObject * must be incremented before returning. Caller is responsible for releasing ppvObject. */ in...
public void startDocumentParsing(XMLEntityHandler scanner, short version){ if (version == Constants.XML_VERSION_1_0){ fEntityManager.setScannerVersion(Constants.XML_VERSION_1_0); } else { fEntityManager.setScannerVersion(Constants.XML_VERSION_1_1); } ...
public void startDocumentParsing(XMLEntityHandler scanner, short version){ if (version == Constants.XML_VERSION_1_0){ fEntityManager.setScannerVersion(Constants.XML_VERSION_1_0); } else { fEntityManager.setScannerVersion(Constants.XML_VERSION_1_1); } ...
private SampleEvent(SampleResult result, String threadGroup, String hostname, boolean isTransactionSampleEvent) { this.result = result; this.threadGroup = threadGroup; this.hostname = hostname; values = new String[variableNames.length]; this.isTransactionSampleEvent = isTrans...
private SampleEvent(SampleResult result, String threadGroup, String hostname, boolean isTransactionSampleEvent) { this.result = result; this.threadGroup = threadGroup; this.hostname = hostname; this.values = new String[variableNames.length]; this.isTransactionSampleEvent = is...
public AbstractBeanPanel(String id, BeanModel beanModel) { super(id, beanModel); if (beanModel == null) { throw new NullPointerException("argument beanModel must not be null"); } }
public AbstractBeanPanel(String id, BeanModel beanModel) { super(id, beanModel); if (beanModel == null) { throw new IllegalArgumentException("Argument beanModel must not be null"); } }
public ThumbnailImageResource(WebResource unscaledImageResource, int maxSize) { super(); if (unscaledImageResource == null) { throw new NullPointerException("unscaledImageResource must be not null"); } this.unscaledImageResource = unscaledImageResource; this.maxSize = maxSize; }
public ThumbnailImageResource(WebResource unscaledImageResource, int maxSize) { super(); if (unscaledImageResource == null) { throw new IllegalArgumentException("Argument unscaledImageResource must be not null"); } this.unscaledImageResource = unscaledImageResource; this.maxSize = maxSize; }
public final void bind(Component hostComponent) { if (hostComponent == null) { throw new NullPointerException("argument hostComponent must be not null"); } if (this.component != null) { throw new IllegalStateException("this kind of handler cannot be attached to " + "multiple components; it is al...
public final void bind(Component hostComponent) { if (hostComponent == null) { throw new IllegalArgumentException("Argument hostComponent must be not null"); } if (this.component != null) { throw new IllegalStateException("this kind of handler cannot be attached to " + "multiple components; it i...
public static void set(final Session session) { if (session == null) { throw new NullPointerException("argument session must me not null"); } CURRENT.set(session); }
public static void set(final Session session) { if (session == null) { throw new IllegalArgumentException("Argument session must me not null"); } CURRENT.set(session); }
public WebExternalResourceRequestTarget(String url) { if (url == null) { throw new NullPointerException("argument url must be not null"); } this.url = url; }
public WebExternalResourceRequestTarget(String url) { if (url == null) { throw new IllegalArgumentException("Argument url must be not null"); } this.url = url; }
public ComponentRequestTarget(final Component component) { if (component == null) { throw new NullPointerException("Argument 'component' must be not null"); } this.component = component; }
public ComponentRequestTarget(final Component component) { if (component == null) { throw new IllegalArgumentException("Argument 'component' must be not null"); } this.component = component; }
public PageRequestTarget(Page page) { if (page == null) { throw new NullPointerException("argument page must be not null"); } this.page = page; }
public PageRequestTarget(Page page) { if (page == null) { throw new IllegalArgumentException("Argument page must be not null"); } this.page = page; }
public SharedResourceRequestTarget(String resourceKey) { if (resourceKey == null) { throw new NullPointerException("argument resourceKey must be not-null"); } this.resourceKey = resourceKey; }
public SharedResourceRequestTarget(String resourceKey) { if (resourceKey == null) { throw new IllegalArgumentException("Argument resourceKey must be not-null"); } this.resourceKey = resourceKey; }
public StringRequestTarget(String string) { if (string == null) { throw new NullPointerException("argument string must be not null"); } this.string = string; }
public StringRequestTarget(String string) { if (string == null) { throw new IllegalArgumentException("Argument string must be not null"); } this.string = string; }
public AbstractRequestTargetEncoderDecoder(final String mountPath) { if (mountPath == null) { throw new NullPointerException("argument mountPath must be not null"); } this.mountPath = mountPath; }
public AbstractRequestTargetEncoderDecoder(final String mountPath) { if (mountPath == null) { throw new IllegalArgumentException("Argument mountPath must be not null"); } this.mountPath = mountPath; }
public BookmarkablePageRequestTargetEncoderDecoder(final String mountPath, final Class bookmarkablePageClass, String pageMapName) { super(mountPath); if (bookmarkablePageClass == null) { throw new NullPointerException("argument bookmarkablePageClass must be not null"); } this.bookmarkablePageClass =...
public BookmarkablePageRequestTargetEncoderDecoder(final String mountPath, final Class bookmarkablePageClass, String pageMapName) { super(mountPath); if (bookmarkablePageClass == null) { throw new IllegalArgumentException("Argument bookmarkablePageClass must be not null"); } this.bookmarkablePageCla...
public String toString() { StringBuffer sb = new StringBuffer("XMPPCriteria["); //$NON-NLS-1$ Iterator it = criteria.iterator(); while (it.hasNext()) { sb.append("[");//$NON-NLS-1$ ICriterion criterion = (ICriterion) it.next(); sb.append(criterion.toString()); sb.append("];");//$NON-NLS-1$ } sb.a...
public String toString() { StringBuffer sb = new StringBuffer("XMPPCriteria["); //$NON-NLS-1$ Iterator it = criteria.iterator(); while (it.hasNext()) { sb.append("[");//$NON-NLS-1$ ICriterion criterion = (ICriterion) it.next(); sb.append(criterion.toString()); sb.append("];");//$NON-NLS-1$ } sb.a...
public ISearch search(ICriteria criteria) throws UserSearchException { ResultList resultList = new ResultList(); try { // initialize the form by chance it is null if (form == null) form = manager.getSearchForm(ecfConnection.getXMPPConnection(), SERVICE_SEARCH + ecfConnection.getXMPPConnect...
public ISearch search(ICriteria criteria) throws UserSearchException { ResultList resultList = new ResultList(); try { // initialize the form by chance it is null if (form == null) form = manager.getSearchForm(ecfConnection.getXMPPConnection(), SERVICE_SEARCH + ecfConnection.getXMPPConnect...
public void setWidth (int width) { checkLayout(); if (width < -1 || width == 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT); if (this.wrapWidth == width) return; freeRuns(); this.wrapWidth = width; } boolean shape (int /*long*/ hdc, StyleItem run, char[] chars, int[] glyphCount, int maxGlyphs) { int hr = OS.ScriptShap...
public void setWidth (int width) { checkLayout(); if (width < -1 || width == 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT); if (this.wrapWidth == width) return; freeRuns(); this.wrapWidth = width; } boolean shape (int /*long*/ hdc, StyleItem run, char[] chars, int[] glyphCount, int maxGlyphs) { int hr = OS.ScriptShap...
public void testNoSourcefilefound() { expectBuildExceptionContaining("testNoSourcefilefound", "File not found", "Unable to load file"); }
public void testNoSourcefilefound() { expectBuildExceptionContaining("testNoSourcefilefound", "File not found", "Unable to load resource"); }
public HttpPageTester(final HttpSession session) { this(new HttpRequestCycle((HttpApplication) session.getApplication(), session, NullHttpRequest.getInstance(), NullResponse.getInstance())); }
public HttpPageTester(final HttpSession session) { this(new HttpRequestCycle((HttpApplication) session.getApplication(), session, HttpRequest.NULL, NullResponse.getInstance())); }
private int executeAsForked( JUnitTest test ) throws TaskException { ExecuteJava cmd = new ExecuteJava(); cmd.setJvm( jvm ); cmd.setIgnoreReturnCode( true ); cmd.setWorkingDirectory( dir ); cmd.setMaxMemory( maxMem ); cmd.getClassPath().add( classPath ); ...
private int executeAsForked( JUnitTest test ) throws TaskException { ExecuteJava cmd = new ExecuteJava(); cmd.setJvm( jvm ); cmd.setIgnoreReturnCode( true ); cmd.setWorkingDirectory( dir ); cmd.setMaxMemory( maxMem ); cmd.getClassPath().add( classPath ); ...
private MarkupFragmentFinder() { } /** * Gets the markup stream and positions it at the component. * * @param component * @return A MarkupStream which is positioned at the component */ static final MarkupStream find(final Component component) { // Get the parent's associated markup stream. MarkupC...
private MarkupFragmentFinder() { } /** * Gets the markup stream and positions it at the component. * * @param component * @return A MarkupStream which is positioned at the component */ static final MarkupStream find(final Component component) { // Get the parent's associated markup stream. MarkupC...
public Id(String str, ClassLoader loader) { if (loader == null) loader = AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction()); if (str == null) _id = 0L; else { int dash = str.indexOf(TYPE_VALUE_SEP); try { ...
public Id(String str, ClassLoader loader) { if (loader == null) loader = AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction()); if (str == null) _id = 0L; else { int dash = str.indexOf(TYPE_VALUE_SEP); try { ...
protected void onBeforeRender() { super.onBeforeRender(); Component buttonBar = getForm().get(BUTTONS_ID); if (buttonBar instanceof IDefaultButtonProvider) { IFormSubmittingComponent defaultButton = ((IDefaultButtonProvider)buttonBar) .getDefaultButton(wizardModel); form.setDefaultButton(defaultBut...
protected void onBeforeRender() { super.onBeforeRender(); Component buttonBar = form.get(BUTTONS_ID); if (buttonBar instanceof IDefaultButtonProvider) { IFormSubmittingComponent defaultButton = ((IDefaultButtonProvider)buttonBar) .getDefaultButton(wizardModel); form.setDefaultButton(defaultButton);...
public boolean resolve(final MarkupContainer container, final MarkupStream markupStream, final ComponentTag tag) { // Ignore special tags like _panel, _border, _extend etc. if ((tag instanceof WicketTag) || tag.getId().startsWith("_")) { return false; } MarkupContainer parent = container; while ((p...
public boolean resolve(final MarkupContainer container, final MarkupStream markupStream, final ComponentTag tag) { // Ignore special tags like _panel, _border, _extend etc. if (tag instanceof WicketTag) { return false; } MarkupContainer parent = container; while ((parent != null) && (parent.isTrans...
public static Time valueOf(final Calendar calendar, final TimeOfDay timeOfDay) { synchronized (calendar) { // Set time to midnight today calendar.setTimeInMillis(System.currentTimeMillis()); calendar.set(Calendar.HOUR, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calen...
public static Time valueOf(final Calendar calendar, final TimeOfDay timeOfDay) { synchronized (calendar) { // Set time to midnight today calendar.setTimeInMillis(System.currentTimeMillis()); calendar.set(Calendar.HOUR_OF_DAY, 0); // WICKET-2349 calendar.set(Calendar.MINUTE, 0); calendar.set(Calend...
public final Page newPage(final Class pageClass) { try { // throw an exception in case default constructor is missing // => improved error message pageClass.getConstructor(null); return (Page)pageClass.newInstance(); } catch (NoSuchMethodException e) { throw new WicketR...
public final Page newPage(final Class pageClass) { try { // throw an exception in case default constructor is missing // => improved error message pageClass.getConstructor((Class[])null); return (Page)pageClass.newInstance(); } catch (NoSuchMethodException e) { throw ne...
private void check(String resname, boolean checkUnexpected) throws Exception { ArrayList alf = new ArrayList(500);// holds keys from file String res = getResName(resname); subTestFailures += readRF(res, alf); Collections.sort(alf); // Look for duplicate keys in the file String last = ""; for (int i = 0;...
private void check(String resname, boolean checkUnexpected) throws Exception { ArrayList alf = new ArrayList(500);// holds keys from file String res = getResName(resname); subTestFailures += readRF(res, alf); Collections.sort(alf); // Look for duplicate keys in the file String last = ""; for (int i = 0;...
protected void tarFile(File file, TarOutputStream tOut, String vPath) throws IOException { FileInputStream fIn = new FileInputStream(file); TarEntry te = new TarEntry(vPath); te.setSize(file.length()); te.setModTime(file.lastModified() / 1000); tOut.putNextEntry(...
protected void tarFile(File file, TarOutputStream tOut, String vPath) throws IOException { FileInputStream fIn = new FileInputStream(file); TarEntry te = new TarEntry(vPath); te.setSize(file.length()); te.setModTime(file.lastModified()); tOut.putNextEntry(te); ...
public void testGenerateBarChart() { log.info("jtl version=" + JMeterUtils.getProperty("file_format.testlog")); // String sampleLog = "C:/eclipse3/workspace/jmeter-21/bin/testfiles/sample_log1.jtl"; String sampleLog = "testfiles/sample_log1.jtl"; String sampleLog2 = "testfiles/sample...
public void testGenerateBarChart() { log.info("jtl version=" + JMeterUtils.getProperty("file_format.testlog")); // String sampleLog = "C:/eclipse3/workspace/jmeter-21/bin/testfiles/sample_log1.jtl"; String sampleLog = "testfiles/sample_log1.jtl"; String sampleLog2 = "testfiles/sample...
private CreditCard isVisa(String creditCardNumber) { if (creditCardNumber.length() == 13 || creditCardNumber.length() == 16) { if (creditCardNumber.startsWith("4")) { return CreditCard.SWITCH; } } return CreditCard.INVALID; }
private CreditCard isVisa(String creditCardNumber) { if (creditCardNumber.length() == 13 || creditCardNumber.length() == 16) { if (creditCardNumber.startsWith("4")) { return CreditCard.VISA; } } return CreditCard.INVALID; }
protected final void handleComponentTag(final ComponentTag tag) { // Add simple javascript on click handler that links to this // link's linkClicked method final String url = getURL().replaceAll("&", "&amp;"); PopupSettings popupSettings = getPopupSettings(); if (popupSet...
protected final void handleComponentTag(final ComponentTag tag) { // Add simple javascript on click handler that links to this // link's linkClicked method final String url = getURL().replaceAll("&", "&amp;"); final PopupSettings popupSettings = getPopupSettings(); if (po...
protected ImageRegistry createImageRegistry() { registry = super.createImageRegistry(); registry.put(ClientPluginConstants.DECORATION_PROJECT, PlatformUI .getWorkbench().getSharedImages().getImage( ISharedImages.IMG_OBJ_FOLDER)); registry.put(ClientPluginConstants.DECORATION_USER, AbstractUIPlugin ...
protected ImageRegistry createImageRegistry() { registry = super.createImageRegistry(); registry.put(ClientPluginConstants.DECORATION_PROJECT, PlatformUI .getWorkbench().getSharedImages().getImage( ISharedImages.IMG_OBJ_FOLDER)); registry.put(ClientPluginConstants.DECORATION_USER, AbstractUIPlugin ...
public static void processSamples(String filename, Visualizer visualizer, ResultCollector resultCollector) throws IOException { BufferedReader dataReader = null; final boolean errorsOnly = resultCollector.isErrorLogging(); final boolean successOnly = resultCollector.isSuccessOnly...
public static void processSamples(String filename, Visualizer visualizer, ResultCollector resultCollector) throws IOException { BufferedReader dataReader = null; final boolean errorsOnly = resultCollector.isErrorLogging(); final boolean successOnly = resultCollector.isSuccessOnly...
protected Object processFileOrScript(ScriptEngineManager sem) throws IOException, ScriptException { final String lang = getScriptLanguage(); ScriptEngine scriptEngine = sem.getEngineByName(lang); if (scriptEngine == null) { throw new ScriptException("Cannot find engine named: "+...
protected Object processFileOrScript(ScriptEngineManager sem) throws IOException, ScriptException { final String lang = getScriptLanguage(); ScriptEngine scriptEngine = sem.getEngineByName(lang); if (scriptEngine == null) { throw new ScriptException("Cannot find engine named: "+...
public MarkupElement nextTag() throws ParseException { // Get the next tag from the markup. // If null, no more tags are available XmlTag xmlTag = (XmlTag)getParent().nextTag(); if (xmlTag == null) { return xmlTag; } final String namespace = this.markup.getWicketNamespace(); // Identify tags with...
public MarkupElement nextTag() throws ParseException { // Get the next tag from the markup. // If null, no more tags are available XmlTag xmlTag = (XmlTag)getParent().nextTag(); if (xmlTag == null) { return xmlTag; } final String namespace = this.markup.getWicketNamespace(); // Identify tags with...
public Id(String str, ClassLoader loader) { if (loader == null) loader = AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction()); if (str == null) _id = 0L; else { int dash = str.indexOf(TYPE_VALUE_SEP); try { ...
public Id(String str, ClassLoader loader) { if (loader == null) loader = AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction()); if (str == null) _id = 0L; else { int dash = str.indexOf(TYPE_VALUE_SEP); try { ...
public void disassembleTest(String name) throws IOException { BcelWorld world = new BcelWorld("../bcweaver/bin"); LazyClassGen clazz = new LazyClassGen((BcelObjectType) world.resolve(name)); clazz.print(); System.out.println(); }
public void disassembleTest(String name) throws IOException { BcelWorld world = new BcelWorld("../weaver/bin"); LazyClassGen clazz = new LazyClassGen((BcelObjectType) world.resolve(name)); clazz.print(); System.out.println(); }
private String valueToString(Object value) { if (value instanceof Time) { return ((Time)value).toRfc1123DateString(); } else { return value.toString(); } }
private String valueToString(Object value) { if (value instanceof Time) { return ((Time)value).toRfc1123TimestampString(); } else { return value.toString(); } }
protected void runExec(Execute exe) throws BuildException { try { Vector v = new Vector(); for (int i=0; i<filesets.size(); i++) { Object o = filesets.elementAt(i); FileSet fs = null; if (o instanceof FileSet) { fs...
protected void runExec(Execute exe) throws BuildException { try { Vector v = new Vector(); for (int i=0; i<filesets.size(); i++) { Object o = filesets.elementAt(i); FileSet fs = null; if (o instanceof FileSet) { fs...
public Object calculate(LexicalUnit lu, Styles parentStyles, Styles styles) { return new Integer(this.calculateInternal(lu, parentStyles, styles)); }
public Object calculate(LexicalUnit lu, Styles parentStyles, Styles styles) { return Integer.valueOf(calculateInternal(lu, parentStyles, styles)); }
private static String[] getFontFamilies(LexicalUnit lu) { List list = new ArrayList(); while (lu != null) { if (lu.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE || lu.getLexicalUnitType() == LexicalUnit.SAC_IDENT) { list.add(lu.getStringValue()); } lu = lu.getNextLexicalUnit(); } retu...
private static String[] getFontFamilies(LexicalUnit lu) { List<String> list = new ArrayList<String>(); while (lu != null) { if (lu.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE || lu.getLexicalUnitType() == LexicalUnit.SAC_IDENT) { list.add(lu.getStringValue()); } lu = lu.getNextLexicalUn...
private void synchronizeChildNodes(VEXElement vexElement, org.w3c.dom.Element domElement) { NodeList domNodes = domElement.getChildNodes(); if (domNodes.getLength() > 0) { for (int nodeCount = 0; nodeCount < domNodes.getLength(); nodeCount++) { org.w3c.dom.Node domNode = domNodes.item(nodeCount); if (do...
private void synchronizeChildNodes(VEXElement vexElement, org.w3c.dom.Element domElement) { NodeList domNodes = domElement.getChildNodes(); if (domNodes.getLength() > 0) { for (int nodeCount = 0; nodeCount < domNodes.getLength(); nodeCount++) { org.w3c.dom.Node domNode = domNodes.item(nodeCount); if (do...
public void valueChanged(TreeSelectionEvent e) { log.debug("value changed, updating currentPath"); currentPath = e.getNewLeadSelectionPath(); actionHandler.actionPerformed(new ActionEvent(this, 3333, "edit")); // $NON-NLS-1$ }
public void valueChanged(TreeSelectionEvent e) { log.debug("value changed, updating currentPath"); currentPath = e.getNewLeadSelectionPath(); actionHandler.actionPerformed(new ActionEvent(this, 3333, ActionNames.EDIT)); // $NON-NLS-1$ }
String CONTAINER_FACTORY_NAME = "ecf.local"; /******************************************************************************* * Copyright (c) 2010 Composent, Inc. and others. All rights reserved. This * program and the accompanying materials are made available under the terms of * the Eclipse Public License v1.0 which...
String CONTAINER_FACTORY_NAME = "ecf.local"; /******************************************************************************* * Copyright (c) 2010 Composent, Inc. and others. All rights reserved. This * program and the accompanying materials are made available under the terms of * the Eclipse Public License v1.0 which...
public Page convertToPage(Object page) { if (page instanceof Page) { return (Page)page; } else if (page instanceof SerializedPageWithSession) { SerializedPageWithSession serialized = (SerializedPageWithSession)page; if (serialized.page == null || serialized.page.get() != SerializedPageWithSess...
public Page convertToPage(Object page) { if (page instanceof Page) { return (Page)page; } else if (page instanceof SerializedPageWithSession) { SerializedPageWithSession serialized = (SerializedPageWithSession)page; if (serialized.page == null || serialized.page.get() != SerializedPageWithSess...
private final Markup loadMarkup(final MarkupContainer container, final MarkupResourceStream markupResourceStream) { CharSequence cacheKey = markupResourceStream.getCacheKey(); try { // read and parse the markup Markup markup = application.getMarkupSettings().getMarkupParserFactory() .newMarkupPars...
private final Markup loadMarkup(final MarkupContainer container, final MarkupResourceStream markupResourceStream) { CharSequence cacheKey = markupResourceStream.getCacheKey(); try { // read and parse the markup Markup markup = application.getMarkupSettings().getMarkupParserFactory() .newMarkupPars...
private MarkupStream findMarkupStream(Component owner) { final String markupType = getMarkupType(owner); // TODO we need to expose this functionality for any class not just for // markupcontainers in markupcache so we dont have to replicate this // logic here // Get locator to search for the resource fi...
private MarkupStream findMarkupStream(Component owner) { final String markupType = getMarkupType(owner); // TODO we need to expose this functionality for any class not just for // markupcontainers in markupcache so we dont have to replicate this // logic here // Get locator to search for the resource fi...
public Control (Composite parent, int style) { super (parent, style); this.parent = parent; createWidget (); } int accessibilityActionNames(int /*long*/ id, int /*long*/ sel) { if (accessible != null) { NSArray returnValue = accessible.internal_accessibilityActionNames(ACC.CHILDID_SELF); if (returnValue != nul...
public Control (Composite parent, int style) { super (parent, style); this.parent = parent; createWidget (); } int accessibilityActionNames(int /*long*/ id, int /*long*/ sel) { if (accessible != null) { NSArray returnValue = accessible.internal_accessibilityActionNames(ACC.CHILDID_SELF); if (returnValue != nul...
protected void extract() throws TaskException { if( source.lastModified() > dest.lastModified() ) { log( "Expanding " + source.getAbsolutePath() + " to " + dest.getAbsolutePath() ); FileOutputStream out = null; CBZip2InputStream zIn =...
protected void extract() throws TaskException { if( source.lastModified() > dest.lastModified() ) { getLogger().info( "Expanding " + source.getAbsolutePath() + " to " + dest.getAbsolutePath() ); FileOutputStream out = null; CBZip2Inpu...
protected void extract() throws TaskException { if( source.lastModified() > dest.lastModified() ) { log( "Expanding " + source.getAbsolutePath() + " to " + dest.getAbsolutePath() ); FileOutputStream out = null; GZIPInputStream zIn = n...
protected void extract() throws TaskException { if( source.lastModified() > dest.lastModified() ) { getLogger().info( "Expanding " + source.getAbsolutePath() + " to " + dest.getAbsolutePath() ); FileOutputStream out = null; GZIPInputS...
public void execute() throws TaskException { if( project.getJavaVersion().equals( Project.JAVA_1_1 ) ) { throw new TaskException( "The genkey task is only available on JDK" + " versions 1.2 or greater" ); } if( null == ali...
public void execute() throws TaskException { if( project.getJavaVersion().equals( Project.JAVA_1_1 ) ) { throw new TaskException( "The genkey task is only available on JDK" + " versions 1.2 or greater" ); } if( null == ali...
public void execute() throws TaskException { // first off, make sure that we've got a srcdir if( src == null ) { throw new TaskException( "srcdir attribute must be set!" ); } String[] list = src.list(); if( list.length == 0 ) { ...
public void execute() throws TaskException { // first off, make sure that we've got a srcdir if( src == null ) { throw new TaskException( "srcdir attribute must be set!" ); } String[] list = src.list(); if( list.length == 0 ) { ...
public void execute() throws TaskException { if( dir == null ) { throw new TaskException( "dir attribute is required" ); } if( dir.isFile() ) { throw new TaskException( "Unable to create directory as a file already exists with that name: "...
public void execute() throws TaskException { if( dir == null ) { throw new TaskException( "dir attribute is required" ); } if( dir.isFile() ) { throw new TaskException( "Unable to create directory as a file already exists with that name: "...
public void execute() throws TaskException { validate(); log( "Building: " + zipFile.getAbsolutePath() ); pack(); }
public void execute() throws TaskException { validate(); getLogger().info( "Building: " + zipFile.getAbsolutePath() ); pack(); }
public void execute() throws TaskException { sqlCommand = sqlCommand.trim(); if( srcFile == null && sqlCommand.length() == 0 && filesets.isEmpty() ) { if( transactions.size() == 0 ) { throw new TaskException( "Source file or fileset, trans...
public void execute() throws TaskException { sqlCommand = sqlCommand.trim(); if( srcFile == null && sqlCommand.length() == 0 && filesets.isEmpty() ) { if( transactions.size() == 0 ) { throw new TaskException( "Source file or fileset, trans...
public void execute() throws TaskException { try { MailMessage mailMessage = new MailMessage( mailhost ); mailMessage.setPort( mailport ); if( from != null ) { mailMessage.from( from ); } else ...
public void execute() throws TaskException { try { MailMessage mailMessage = new MailMessage( mailhost ); mailMessage.setPort( mailport ); if( from != null ) { mailMessage.from( from ); } else ...